diff options
Diffstat (limited to 'animism-align/frontend/app/views/viewer/player/components.media/video.scrubber.js')
| -rw-r--r-- | animism-align/frontend/app/views/viewer/player/components.media/video.scrubber.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/animism-align/frontend/app/views/viewer/player/components.media/video.scrubber.js b/animism-align/frontend/app/views/viewer/player/components.media/video.scrubber.js index bb6a753..ec25cba 100644 --- a/animism-align/frontend/app/views/viewer/player/components.media/video.scrubber.js +++ b/animism-align/frontend/app/views/viewer/player/components.media/video.scrubber.js @@ -87,7 +87,7 @@ class VideoScrubber extends Component { // remove video start offset from timing const player_ts = timing.seconds - video_start_ts // compute percent from the length of the fullscreen element - const percent = player_ts / duration + const percent = clamp(player_ts / duration, 0, 1) // display timestamp from the fullscreen element too const timestampText = timestamp(clamp(player_ts, 0, duration)) // show or hide the scrubber bar |
