Refactor main.js: playback and subtitles controllers

This commit is contained in:
DC
2016-07-01 17:11:46 -07:00
parent f85e0a61b1
commit 24f5856649
7 changed files with 497 additions and 427 deletions

View File

@@ -519,7 +519,7 @@ function renderPlayerControls (state) {
var windowWidth = document.querySelector('body').clientWidth
var fraction = e.clientX / windowWidth
var position = fraction * state.playing.duration /* seconds */
dispatch('playbackJump', position)
dispatch('skipTo', position)
}
// Handles volume muting and Unmuting