From 073e5709bc82e882b94845c79d917b1a836849f6 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Fri, 15 Dec 2017 20:30:19 +0000 Subject: [PATCH] [client] Fix a few referencing errors --- Nibriboard/ClientFiles/CursorSyncer.js | 4 ++-- Nibriboard/ClientFiles/Pencil.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 }