From a9630a21b565292d4fe8681c9dd0cbf996dcbc85 Mon Sep 17 00:00:00 2001 From: jcass Date: Sun, 28 Feb 2016 08:40:23 +0200 Subject: [PATCH] Fix, prevent timer from 'dying' if position > duration. --- mopidy_musicbox_webclient/static/mb.appcache | 2 +- .../static/vendors/media_progress_timer/timer.js | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/mopidy_musicbox_webclient/static/mb.appcache b/mopidy_musicbox_webclient/static/mb.appcache index 268ac08..a5d061f 100644 --- a/mopidy_musicbox_webclient/static/mb.appcache +++ b/mopidy_musicbox_webclient/static/mb.appcache @@ -1,6 +1,6 @@ CACHE MANIFEST -# 2016-02-23:v1 +# 2016-02-28:v1 NETWORK: * diff --git a/mopidy_musicbox_webclient/static/vendors/media_progress_timer/timer.js b/mopidy_musicbox_webclient/static/vendors/media_progress_timer/timer.js index a6ee63f..138605f 100644 --- a/mopidy_musicbox_webclient/static/vendors/media_progress_timer/timer.js +++ b/mopidy_musicbox_webclient/static/vendors/media_progress_timer/timer.js @@ -109,15 +109,14 @@ ProgressTimer.prototype._update = function(timestamp) { this._callback(Math.floor(position), duration, this._running); state.previousPosition = position; } - this._scheduleUpdate(timestamp); } else { // Workaround for https://github.com/adamcik/media-progress-timer/issues/3 // This causes the timer to die unexpectedly if the position goes // over the duration slightly. - // this._running = false; this._callback(duration, duration, this._running); } + this._scheduleUpdate(timestamp); }; if(typeof module !== 'undefined') {