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 | |
| parent | 3eb6e48a22ac38d3886f4572f2ada1fdbba4f106 (diff) | |
hide prospective ghost on zoom reset (keyboard f/0, dblclick, touch double-tap); never render ghost from async exits on touch
| -rw-r--r-- | public/app.js | 5 | ||||
| -rw-r--r-- | public/index.html | 4 |
2 files changed, 6 insertions, 3 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() } } 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 @@ <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="color-scheme" content="dark"> <title>pathways</title> - <link rel="stylesheet" href="/app.css?v=59"> + <link rel="stylesheet" href="/app.css?v=60"> </head> <body> <main id="stage"> @@ -29,6 +29,6 @@ <span id="progress-text"></span> </div> <div id="toast" role="status" aria-live="polite"></div> - <script src="/app.js?v=59"></script> + <script src="/app.js?v=60"></script> </body> </html> |
