From e6178af1461f62309b1f331ac240fe1e2628795b Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sat, 28 Mar 2015 14:56:14 +0100 Subject: [PATCH] fix off by one chapter title display, fixes #2726 --- source/UI/js/Video/VideoPlayer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/UI/js/Video/VideoPlayer.js b/source/UI/js/Video/VideoPlayer.js index f4cc1e8e..3b739f6a 100644 --- a/source/UI/js/Video/VideoPlayer.js +++ b/source/UI/js/Video/VideoPlayer.js @@ -1436,7 +1436,7 @@ Ox.VideoPlayer = function(options, self) { if ( v.position <= self.options.position && ( i == self.options.chapters.length - 1 - || self.options.chapters[i + 1].position >= self.options.position + || self.options.chapters[i + 1].position > self.options.position ) ) { chapterTitle = v.title;