Skip to content

fix: responsive: timeline glitch and keyboard-accessible scrubber #17556

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Apr 14, 2025

Conversation

midzelis
Copy link
Contributor

Description

Fixes a glitch on mobile - when loading timeline at a certain location, midway down the scrubber, loading the bucket will calculate a layout shift, and then trigger another bucket to load, in a loop, causing many buckets to load, and the scrubber to creep upwards.

This is due to not correctly calculating the positions buckets correctly, and improperly compensating for those.

Additionally, bugs with loss of precision between sub-pixel and full-pixel (and rounding errors) have been fixed. The scrubber is now also keyboard accessible. (Pressing up/down will move to prev/next bucket)

@midzelis
Copy link
Contributor Author

before:

main_glitch.mov

after:

fix.mov

@midzelis
Copy link
Contributor Author

Noticed a little margin problem on mobile, here's it after the last commit
Simulator Screenshot - iPhone 16 - 2025-04-13 at 11 19 16

@alextran1502 alextran1502 merged commit 5a51ad3 into main Apr 14, 2025
45 checks passed
@alextran1502 alextran1502 deleted the fix_timeline_load_glitch branch April 14, 2025 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants