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:
parent
9fa7a04d47
commit
073e5709bc
2 changed files with 3 additions and 3 deletions
|
@ -28,8 +28,8 @@ class CursorSyncer
|
|||
{
|
||||
return new ChunkReference(
|
||||
this.boardWindow.currentPlaneName,
|
||||
Math.floor(locRef.x / this.boardWindow.gridSize),
|
||||
Math.floor(locRef.y / this.boardWindow.gridSize)
|
||||
Math.floor(this.absCursorPosition.x / this.boardWindow.gridSize),
|
||||
Math.floor(this.absCursorPosition.y / this.boardWindow.gridSize)
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -150,7 +150,7 @@ class Pencil
|
|||
|
||||
let lineToErase = hoverChunk.getLineUnderPoint(cursorPos);
|
||||
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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue