repo: janusweb
action: commit
revision: 
path_from: 
revision_from: 11aabf0b1a153134a65410b66114a93f9100a83b:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit 11aabf0b1a153134a65410b66114a93f9100a83b
Author: James Baicoianu 
Date:   Sun Feb 11 20:21:22 2018 +0000

    Fixed teleporter stickiness

diff --git a/scripts/elements/teleporter.js b/scripts/elements/teleporter.js
index ac33bce7bd65921f84d4930d78c17623042cc3c1..
index ..d98e3dae97501657cc3c726cc2a6e9911938db38 100644
--- a/scripts/elements/teleporter.js
+++ b/scripts/elements/teleporter.js
@@ -3,7 +3,7 @@ elation.component.add('janusweb.elements.teleporter', {
     longpresstime: 250,
     deadzone: 5,

-    createChildren() {
+    create() {
       this.marker = this.createObject('Object', {
         id: 'pipe',
         col: '#009',
@@ -54,6 +54,7 @@ elation.component.add('janusweb.elements.teleporter', {
     handleMouseDown(ev) {
       this.longpresstimer = setTimeout(this.enableCursor, this.longpresstime);
       this.mousediff = [0,0];
+      this.active = false;
     },
     handleMouseMove(ev) {
       if (this.longpresstimer) {

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