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:
parent
b32e51dddd
commit
cedf749e3e
2 changed files with 3 additions and 1 deletions
|
@ -169,7 +169,7 @@ class BoardWindow extends EventEmitter
|
|||
Width: window.innerWidth,
|
||||
Height: window.innerHeight
|
||||
},
|
||||
InitialAbsCursorPosition: this.cursorPosition
|
||||
InitialAbsCursorPosition: this.cursorSyncer.cursorPosition
|
||||
});
|
||||
}).bind(this));
|
||||
this.rippleLink.on("disconnect", (function(event) {
|
||||
|
|
|
@ -12,6 +12,8 @@ class CursorSyncer
|
|||
// Register ourselves to start sending cursor updates once the ripple
|
||||
// link connects
|
||||
this.rippleLink.on("connect", this.setup.bind(this));
|
||||
|
||||
this.cursorPosition = { X: 0, Y: 0 };
|
||||
}
|
||||
|
||||
setup()
|
||||
|
|
Loading…
Reference in a new issue