diff --git a/js/actionCreators.js b/js/actionCreators.js index d49c0259..acb2b6de 100644 --- a/js/actionCreators.js +++ b/js/actionCreators.js @@ -150,11 +150,12 @@ export function previous() { export function seekForward(seconds) { return function(dispatch, getState) { - const { media } = getState(); - const { timeElapsed, length } = media; + const { timeElapsed, length } = getState().media; const newTimeElapsed = timeElapsed + seconds; - const newPercentComplete = newTimeElapsed / length; - dispatch({ type: SEEK_TO_PERCENT_COMPLETE, percent: newPercentComplete }); + dispatch({ + type: SEEK_TO_PERCENT_COMPLETE, + percent: newTimeElapsed / length * 100 + }); }; }