diff options
Diffstat (limited to 'public')
| -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> |
