fix off by one chapter title display, fixes #2726
This commit is contained in:
parent
cd3ec3b78b
commit
e6178af146
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue