From e7a1783b83ed7d27d643ff729d2581be67aed30c Mon Sep 17 00:00:00 2001 From: DC23 Date: Mon, 6 Apr 2026 11:51:02 +1000 Subject: [PATCH] Mouse click coordinates aren't rendered when the mouse click is outside the scene boundary. Fixes #72 --- src/coordinateMap.js | 1 + 1 file changed, 1 insertion(+) 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)