diff options
| author | dax <me@dax.ist> | 2026-08-05 09:54:07 +0100 |
|---|---|---|
| committer | dax <me@dax.ist> | 2026-08-05 09:54:07 +0100 |
| commit | 94b4f4c2012da7714e97fc6a14cd165e456b569f (patch) | |
| tree | ef3a90de60eb64ca9ec84c07d7989a11dd076117 /public/app.js | |
| parent | 3eb6e48a22ac38d3886f4572f2ada1fdbba4f106 (diff) | |
hide prospective ghost on zoom reset (keyboard f/0, dblclick, touch double-tap); never render ghost from async exits on touch
Diffstat (limited to 'public/app.js')
| -rw-r--r-- | public/app.js | 5 |
1 files changed, 4 insertions, 1 deletions
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() } } |
