From adead97b23f754b7357b68cdceac477af71f2cf1 Mon Sep 17 00:00:00 2001 From: Bnyro Date: Fri, 22 Jul 2022 20:50:21 +0200 Subject: [PATCH 1/5] fix crash on chapters --- src/components/ChaptersBar.vue | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/src/components/ChaptersBar.vue b/src/components/ChaptersBar.vue index ca57f195..ab8b9dd5 100644 --- a/src/components/ChaptersBar.vue +++ b/src/components/ChaptersBar.vue @@ -10,7 +10,7 @@ @click="$emit('seek', chapter.start)" class="chapter-vertical" :class=" - playerPosition >= chapter.start && playerPosition < chapters[index + 1].start + isCurrentChapter(chapters, index, playerPosition) ? 'chapter-vertical bg-red-500/50' : 'chapter-vertical' " @@ -29,13 +29,9 @@
@@ -70,6 +66,19 @@ } + + -