Rail scrollbar v2: delegated + lazy — survives app re-renders #29
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "rail-scrollbar-v2"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Nikola's live finding: thumb worked on docs, absent on account and staff. Diagnosed in-page: v1 attached the thumb once at load, and account.html/admin.html re-render their rail after auth, wiping it (docs never re-renders). v2 replaces the init pass with one capture-phase document scroll listener that lazily creates or reuses the thumb on whichever
.railscrollis scrolling — self-healing under any re-render, and correct by construction since the thumb only needs to exist while scrolling. Same CSS; canonical snippet updated.