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,
|
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) {
|
||||||
|
|
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue