repo: janusweb action: commit revision: path_from: revision_from: d2574953108bc3eded3d6ea1c00234bf8ffc1391: path_to: revision_to:
commit d2574953108bc3eded3d6ea1c00234bf8ffc1391 Author: James BaicoianuDate: Sun Mar 10 18:31:29 2024 -0700 Websurface click interaction tweaks diff --git a/scripts/websurface.js b/scripts/websurface.js
--- a/scripts/websurface.js
+++ b/scripts/websurface.js
@@ -45,7 +45,7 @@ elation.require(['engine.things.generic'], function() {
elation.events.add(this, 'click', elation.bind(this, this.click));
}
this.createObject3D = function() {
- var plane = new THREE.PlaneBufferGeometry(1,1);
+ var plane = new THREE.PlaneGeometry(1,1);
var mat = new THREE.MeshBasicMaterial({
color: 0x000000,
@@ -113,7 +113,7 @@ elation.require(['engine.things.generic'], function() {
if (!this.active) {
var canvas = this.engine.client.view.rendersystem.renderer.domElement;
canvas.style.pointerEvents = 'none';
- canvas.style.position = 'absolute';
+ //canvas.style.position = 'absolute';
this.engine.systems.controls.releasePointerLock();
this.active = true;
this.selectionmaterial.color.copy(this.activecolor);
@@ -127,7 +127,7 @@ setTimeout(elation.bind(this, function() {
if (this.active) {
var canvas = this.engine.client.view.rendersystem.renderer.domElement;
canvas.style.pointerEvents = 'all';
- canvas.style.position = 'static';
+ //canvas.style.position = 'static';
this.engine.systems.controls.requestPointerLock();
ev.stopPropagation();
ev.preventDefault();
-----END OF PAGE-----