Fix scrubbing bug: don't skip to 0s after drag
This commit is contained in:
parent
c59abb251b
commit
3cfdf857cf
1 changed files with 1 additions and 0 deletions
|
|
@ -524,6 +524,7 @@ function renderPlayerControls (state) {
|
|||
|
||||
// Handles a click or drag to scrub (jump to another position in the video)
|
||||
function handleScrub (e) {
|
||||
if (!e.clientX) return
|
||||
dispatch('mediaMouseMoved')
|
||||
var windowWidth = document.querySelector('body').clientWidth
|
||||
var fraction = e.clientX / windowWidth
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue