Fix scrubbing bug: don't skip to 0s after drag
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user