mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-14 00:01:03 +00:00
25351c3628
The day swipe only rubber-banded the current day, then cut to the next one after a fixed slide and a synchronous re-render of the whole planner. The previous, current and next day now sit side by side in a horizontal scroll-snap strip, so the finger drags the neighbour in, and momentum, edge bounce and axis locking are the browser's own. The day changes once the strip comes to rest, with a light haptic tick in the app. The pager is one building block, MDayPager, used by the plan timeline and the road trip stages alike. Each page renders its own day through the timeline and stage hooks, which now take the day as a parameter, and keeps its state when it slides into the middle.