A stale scroll event no longer closes the timeline menu (#308)
- github
- github/openchronology/timeline-app
- commit
- main
- github/athanclark
The menu closed on any scroll event. A scroll's event arrives a frame after the scroll itself, so one for a scroll that ended just before a right-click or long press closed the menu the moment it opened; this is what made the duration menu's Fit in view time out in local Chromium (Playwright scrolls a target into view and clicks at once). The menu now remembers what it was opened on and where, and a scroll closes it only once that has moved or gone. A deterministic check scrolls and opens the menu in the same frame and requires it to stay open; it fails without the fix. Closes #308 Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_011fFY8eruEi1xAkkMBni13B https://github.com/openchronology/timeline-app/commit/1f77008f3023505e69b178eb70e72f53ace9f468
Related
Open A stale scroll event no longer closes the timeline menu (#308) in the timeline