preserve scroll on edit #73

Merged
maxtkc merged 6 commits from 69-preserve-scroll-on-edit into main 2026-04-08 00:18:19 +00:00
Owner

Closes #69

Closes #69
maxtkc self-assigned this 2026-04-08 00:18:12 +00:00
The scroll was saved after 'await renderSchedule()', but browser focus/layout
events during those DB round-trips reset scrollLeft to 0. Moving the capture
to before the await preserves the user's scroll position.
Read scrollLeft/scrollTop from a capture-phase scroll listener on the
document rather than from the DOM at edit time, since the browser resets
both values during async DB awaits.  Reset tracked scroll on navigation
to a new page so new timetables open at the top-left.
maxtkc merged commit 926819be80 into main 2026-04-08 00:18:19 +00:00
maxtkc deleted branch 69-preserve-scroll-on-edit 2026-04-08 00:18:20 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
gtfs.zone/coloring-book!73
No description provided.