1
0
Fork 0
mirror of https://github.com/sbrl/Nibriboard.git synced 2018-01-10 21:33:49 +00:00

[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()