From 94b4f4c2012da7714e97fc6a14cd165e456b569f Mon Sep 17 00:00:00 2001 From: dax Date: Wed, 5 Aug 2026 09:54:07 +0100 Subject: hide prospective ghost on zoom reset (keyboard f/0, dblclick, touch double-tap); never render ghost from async exits on touch --- public/app.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'public/app.js') diff --git a/public/app.js b/public/app.js index 9c6d187..6e2b36e 100644 --- a/public/app.js +++ b/public/app.js @@ -86,6 +86,9 @@ function zoomAt(mx, my, factor) { function resetZoom() { userZoomed = false scale = worldScale() + hoveredSlot = null + suppressHover = true + hideSlot() center() } @@ -241,7 +244,7 @@ async function getExits(id) { const exits = data.exits || [] exitsCache.set(id, exits) renderNav(id) - if (!drag && !suppressHover) { + if (!drag && !suppressHover && !TOUCH) { const s = findSlotAt(lastCursor.wx, lastCursor.wy) if (s) { hoveredSlot = s; refreshPreviews() } } -- cgit v1.3.1