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

[client] Fix a few referencing errors

This commit is contained in:
Starbeamrainbowlabs 2017-12-15 20:30:19 +00:00
parent 9fa7a04d47
commit 073e5709bc
Signed by: sbrl
GPG key ID: 1BE5172E637709C2
2 changed files with 3 additions and 3 deletions

View file

@ -28,8 +28,8 @@ class CursorSyncer
{ {
return new ChunkReference( return new ChunkReference(
this.boardWindow.currentPlaneName, this.boardWindow.currentPlaneName,
Math.floor(locRef.x / this.boardWindow.gridSize), Math.floor(this.absCursorPosition.x / this.boardWindow.gridSize),
Math.floor(locRef.y / this.boardWindow.gridSize) Math.floor(this.absCursorPosition.y / this.boardWindow.gridSize)
); );
} }

View file

@ -150,7 +150,7 @@ class Pencil
let lineToErase = hoverChunk.getLineUnderPoint(cursorPos); let lineToErase = hoverChunk.getLineUnderPoint(cursorPos);
if(lineToErase == null) { if(lineToErase == null) {
console.debug(`No line found at abs ${locRef}.`); console.debug(`No line found at abs ${cursorPos}.`);
break; // There's no line underneath the cursor atm break; // There's no line underneath the cursor atm
} }