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 ++++- public/index.html | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'public') 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() } } diff --git a/public/index.html b/public/index.html index 67368cb..9bda073 100644 --- a/public/index.html +++ b/public/index.html @@ -5,7 +5,7 @@ pathways - +
@@ -29,6 +29,6 @@
- + -- cgit v1.3.1