fix off by one chapter title display, fixes #2726

This commit is contained in:
j 2015-03-28 14:56:14 +01:00
parent cd3ec3b78b
commit e6178af146

View file

@ -1436,7 +1436,7 @@ Ox.VideoPlayer = function(options, self) {
if ( if (
v.position <= self.options.position && ( v.position <= self.options.position && (
i == self.options.chapters.length - 1 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; chapterTitle = v.title;