repo: janusweb
action: commit
revision: 
path_from: 
revision_from: d2574953108bc3eded3d6ea1c00234bf8ffc1391:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit d2574953108bc3eded3d6ea1c00234bf8ffc1391
Author: James Baicoianu 
Date:   Sun Mar 10 18:31:29 2024 -0700

    Websurface click interaction tweaks

diff --git a/scripts/websurface.js b/scripts/websurface.js
index 43b61b40a9f3be0176061c5bde254b80b919a092..
index ..b054c8f445006a910e822d3661711d54f733026b 100644
--- 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-----