diff options
| author | dax <me@dax.ist> | 2026-08-04 10:26:40 +0000 |
|---|---|---|
| committer | dax <me@dax.ist> | 2026-08-04 10:26:40 +0000 |
| commit | 56b3a602c8e992a2bc197844e1ab3de8743b8012 (patch) | |
| tree | 42e4f1f9ee46e6e8e7bfe93dbaf93608371e65b4 /public/index.html | |
| parent | 8f9b940b875ee854a293c862405dc38ea8b643ff (diff) | |
Code review cleanup: cache placement/adjacency, drop dead code
- Cache choosePlacement and adjacentTile results per (id,dir); invalidate
on addTile. Avoids O(n^3) placement scoring on every pointermove.
- setCurrent now re-renders only affected navs (prev + new) instead of
refreshAllNav; remove refreshAllNav entirely.
- Add pointercancel handler so interrupted touch/trackpad gestures don't
leave a stuck drag.
- Remove dead code: placeRect, photoConnections + /api/photo route and
THUMBS const on server, dangling info var in pointerup.
- Trim .gitignore, remove .DS_Store, bump cache-bust to ?v=20.
Diffstat (limited to 'public/index.html')
| -rw-r--r-- | public/index.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/public/index.html b/public/index.html index ee844d7..4c13a5a 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=19"> + <link rel="stylesheet" href="/app.css?v=20"> </head> <body> <main id="stage"> @@ -16,6 +16,6 @@ <p>four paths, one per direction. walk them.</p> <button id="start">start</button> </div> - <script src="/app.js?v=19"></script> + <script src="/app.js?v=20"></script> </body> </html> |
