1
0
Fork 0

[client] Fix initial cursor syncing message bug

This commit is contained in:
Starbeamrainbowlabs 2017-07-29 18:49:56 +01:00
parent b32e51dddd
commit cedf749e3e
2 changed files with 3 additions and 1 deletions

View File

@ -169,7 +169,7 @@ class BoardWindow extends EventEmitter
Width: window.innerWidth, Width: window.innerWidth,
Height: window.innerHeight Height: window.innerHeight
}, },
InitialAbsCursorPosition: this.cursorPosition InitialAbsCursorPosition: this.cursorSyncer.cursorPosition
}); });
}).bind(this)); }).bind(this));
this.rippleLink.on("disconnect", (function(event) { this.rippleLink.on("disconnect", (function(event) {

View File

@ -12,6 +12,8 @@ class CursorSyncer
// Register ourselves to start sending cursor updates once the ripple // Register ourselves to start sending cursor updates once the ripple
// link connects // link connects
this.rippleLink.on("connect", this.setup.bind(this)); this.rippleLink.on("connect", this.setup.bind(this));
this.cursorPosition = { X: 0, Y: 0 };
} }
setup() setup()