aboutsummaryrefslogtreecommitdiff
path: root/public/admin.css
diff options
context:
space:
mode:
authordax <me@dax.ist>2026-08-04 11:51:26 +0000
committerdax <me@dax.ist>2026-08-04 11:51:26 +0000
commit6a0dc37b2e5580987df8fd11becdff53b32c9836 (patch)
tree564aa9b45a37a35bb859132fcb249918f3323d39 /public/admin.css
parent8a744362ff9a454d284b1385a7b30cce98271bfb (diff)
hover black space around mosaic: per-free-dir dropzones + hotspots
Mouse users can now hover the empty black space beside the current tile to preview the photo that would be placed at that free-direction spot. renderTileZones now renders one dropzone per free direction (N/E/S/W): - the most-centered free dir keeps the persistent .preview (thumbnail) - the other free dirs are transparent hover hotspots that showGhost() the destination placement on pointermove and scheduleHideGhost() on leave - stable-element logic via a key string: early-return when unchanged; if only bestDir flips, move the cached prevEl into the new best dropzone and update img.src (no element churn / no flicker) - hotspots skipped on TOUCH (kept for tap-to-walk), persistent preview only - one preview at a time via .dropzone.hidden { visibility:hidden } zones map entries are now { els, key, bestDir, prevEl, img }. Tests green: domtest 58, touchtest 19, exhausttest 9, splashtest 6, fuzz clean, hoverlive 0 stray ghosts. Live at ?v=27.
Diffstat (limited to 'public/admin.css')
0 files changed, 0 insertions, 0 deletions