Skip to content

fix: scrubber seek undershoot on release#85

Merged
klay2000 merged 1 commit into
mainfrom
fix-scrubber-seek-overshoot
Jun 17, 2026
Merged

fix: scrubber seek undershoot on release#85
klay2000 merged 1 commit into
mainfrom
fix-scrubber-seek-overshoot

Conversation

@klay2000

Copy link
Copy Markdown
Owner

Summary

  • onScrubEnd recomputes the scrub ratio from the pointerup event itself instead of trusting the last pointermove value, which could lag behind a fast drag and seek short of the actual release point.

Test plan

  • Tested manually: dragging the player scrubber and releasing now seeks to the exact release position.

onScrubEnd relied on the last pointermove's ratio, which can lag behind
the cursor during fast drags and land short of the actual release point.
@klay2000 klay2000 merged commit ebbfad2 into main Jun 17, 2026
@klay2000 klay2000 deleted the fix-scrubber-seek-overshoot branch June 17, 2026 00:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant