Prevent playback controls from hiding while the user is scrubbing

Fixes #64
This commit is contained in:
Chris Morris
2016-03-07 22:13:56 +11:00
parent 096e4bfd9b
commit fa93891574

View File

@@ -117,6 +117,7 @@ function renderPlayerControls (state, dispatch) {
// Handles a click or drag to scrub (jump to another position in the video)
function handleScrub (e) {
dispatch('videoMouseMoved')
var windowWidth = document.querySelector('body').clientWidth
var fraction = e.clientX / windowWidth
var position = fraction * state.video.duration /* seconds */