Skip to content

Fix repeated seeks during playback on Safari#142

Merged
MattiasBuelens merged 6 commits intomainfrom
bugfix/repeated-seeks-during-playback
Apr 22, 2026
Merged

Fix repeated seeks during playback on Safari#142
MattiasBuelens merged 6 commits intomainfrom
bugfix/repeated-seeks-during-playback

Conversation

@MattiasBuelens
Copy link
Copy Markdown
Collaborator

On macOS and iOS Safari, the player was triggering repeated seeks during playback, leading to very noticeable stuttering.

The problem was that TimeRange._updateFromPlayer would set this.value, which would always call this.handleInput() and as such trigger a seek on the player. This is a regression in version 2.0.0: in 1.x, _updateFromPlayer would not go through this.value and would instead set the new value directly on the <input type=range>.

I fixed it by reviving some lost logic from 1.x: we now go through the new this.rawValue instead, which deliberately does not call handleInput().

@MattiasBuelens MattiasBuelens added the bug Something isn't working label Apr 22, 2026
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Apr 22, 2026

🦋 Changeset detected

Latest commit: 4a9fc21

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@MattiasBuelens MattiasBuelens force-pushed the bugfix/repeated-seeks-during-playback branch from c77faf1 to 4abe40d Compare April 22, 2026 13:22
@MattiasBuelens MattiasBuelens force-pushed the bugfix/repeated-seeks-during-playback branch from 4abe40d to 4a9fc21 Compare April 22, 2026 13:23
@MattiasBuelens MattiasBuelens merged commit 9ba8855 into main Apr 22, 2026
1 check passed
@MattiasBuelens MattiasBuelens deleted the bugfix/repeated-seeks-during-playback branch April 22, 2026 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants