Skip to content

Commit

Permalink
* Make activating a chapter selector makes window scroll to top like …
Browse files Browse the repository at this point in the history
…clicking on timestamp links (#4722)
  • Loading branch information
PikachuEXE authored Mar 2, 2024
1 parent 65b7ba1 commit 6472c03
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ export default defineComponent({
changeChapter: function(index) {
this.currentIndex = index
this.$emit('timestamp-event', this.chapters[index].startSeconds)
window.scrollTo(0, 0)
},

navigateChapters(direction) {
Expand Down

0 comments on commit 6472c03

Please sign in to comment.