diff --git a/src/coordinateMap.js b/src/coordinateMap.js index 24f103b..2ca6aa3 100644 --- a/src/coordinateMap.js +++ b/src/coordinateMap.js @@ -172,6 +172,7 @@ class Coord { mouseCoords () { const pos = canvas.mousePosition + if (!this.internal.contains(pos.x, pos.y)) return; // don't render if the coordinates are outside the scene boundary const offset = canvas.grid.getOffset({ x: pos.x, y: pos.y }) const row = this.applyHexRowAdjustment(offset.i - this.row0) const col = this.applyHexColumnAdjustment(offset.j - this.col0)