From 4544efc02c6214bf9dac70dea37c733260986ff0 Mon Sep 17 00:00:00 2001 From: j Date: Sat, 30 Dec 2017 16:50:17 +0100 Subject: [PATCH] more seeking issues --- source/UI/js/Video/VideoElement.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/UI/js/Video/VideoElement.js b/source/UI/js/Video/VideoElement.js index a7c46e83..4e3b8f79 100644 --- a/source/UI/js/Video/VideoElement.js +++ b/source/UI/js/Video/VideoElement.js @@ -408,11 +408,14 @@ Ox.VideoElement = function(options, self) { 'delta', currentTime - self.video.currentTime); isReady(self.$video, function(video) { if (self.video == video) { - if(self.seeking) { + if(self.video.seeking) { self.$video.one('seeked', function() { that.triggerEvent('seeked'); self.seeking = false; }); + } else if (self.seeking) { + that.triggerEvent('seeked'); + self.seeking = false; } video.currentTime = currentTime; }