Fix state.playing.jumpToTime behavior (#672)

Previously, state.playing.jumpToTime = 0 didn't do anything.
This commit fixes that.
This commit is contained in:
Adam Gotlib
2016-06-28 15:25:26 +02:00
committed by DC
parent 7a61b52d64
commit c44943cef7

View File

@@ -43,7 +43,7 @@ function renderMedia (state) {
mediaElement.play()
}
// When the user clicks or drags on the progress bar, jump to that position
if (state.playing.jumpToTime) {
if (state.playing.jumpToTime != null) {
mediaElement.currentTime = state.playing.jumpToTime
state.playing.jumpToTime = null
}