Skip to content

Commit 238229e

Browse files
committed
fix: currentTimeDisplay shows 0:00 after seek
Steps to reproduce originally posted by @johanberonius at videojs#8988 (comment) - Pause player - Click progress bar and hold mouse button down - Current time display is updated correctly - Release mouse button - Current time display is reset to zero - Play video - Current time display is updated again This patch integrates to proposed workaround by @johanberonius. The issue was not caused by adding the option `disableSeekWhileScrubbingOnMobile` per se, but is a side-effect of the improvements added in 77c99d2.
1 parent 20f8d76 commit 238229e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js/control-bar/progress-control/seek-bar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class SeekBar extends Slider {
5656
super(player, options);
5757

5858
this.shouldDisableSeekWhileScrubbing_ = shouldDisableSeekWhileScrubbing;
59-
this.pendingSeekTime_ = null;
59+
this.pendingSeekTime = this.getCurrentTime_;
6060

6161
this.setEventHandlers_();
6262
}

0 commit comments

Comments
 (0)