Fix scrubbing bug: don't skip to 0s after drag

This commit is contained in:
DC
2016-07-21 01:09:43 -07:00
parent c59abb251b
commit 3cfdf857cf

View File

@@ -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