repo: janusweb
action: commit
revision: 
path_from: 
revision_from: 9599467d76c5547da14e3fb52a39211cd11db30d:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit 9599467d76c5547da14e3fb52a39211cd11db30d
Author: James Baicoianu 
Date:   Fri Jun 23 01:30:50 2017 -0700

    Cursor fixes

diff --git a/scripts/janusplayer.js b/scripts/janusplayer.js
index 1ed2ff2cb6ca63e5e0aa7e420bdb3bf1efc01b44..
index ..f50fea67cb608785f57b4b23e150e8988697aef2 100644
--- a/scripts/janusplayer.js
+++ b/scripts/janusplayer.js
@@ -98,7 +98,7 @@ elation.require(['engine.things.player', 'janusweb.external.JanusVOIP', 'ui.butt
           'crosshair': elation.engine.assets.find('image', 'cursor_crosshair'),
           'pointer': elation.engine.assets.find('image', 'cursor_hand'),
         };
-        this.cursor = new THREE.Sprite(new THREE.SpriteMaterial({color: 0xffffff, depthTest: false, depthWrite: false, map: null}));
+        this.cursor = new THREE.Sprite(new THREE.SpriteMaterial({color: 0xffffff, depthTest: false, depthWrite: false, transparent: true, map: null}));
         this.engine.systems.world.scene['world-3d'].add(this.cursor);
       }), 1000);
     }
@@ -436,7 +436,7 @@ elation.require(['engine.things.player', 'janusweb.external.JanusVOIP', 'ui.butt
         animid = 'walk_right';
       } else if (this.controlstate.move_backward) {
         animid = 'walk_back';
-      } else if (document.activeElement && this.chat && document.activeElement === this.chat.input.inputelement) {
+      } else if (document.activeElement && this.janus.chat && document.activeElement === this.janus.chat.input.inputelement) {
         animid = 'type';
       } else if (this.hasVoipData()) {
         animid = 'speak';

-----END OF PAGE-----