diff --git a/Nibriboard/ClientFiles/CursorSyncer.js b/Nibriboard/ClientFiles/CursorSyncer.js index 4190b26..ac3fc6e 100644 --- a/Nibriboard/ClientFiles/CursorSyncer.js +++ b/Nibriboard/ClientFiles/CursorSyncer.js @@ -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) ); } diff --git a/Nibriboard/ClientFiles/Pencil.js b/Nibriboard/ClientFiles/Pencil.js index a63b512..1d62c00 100644 --- a/Nibriboard/ClientFiles/Pencil.js +++ b/Nibriboard/ClientFiles/Pencil.js @@ -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 }