mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-01-03 00:06:46 +01:00
Fix:Resizing page update chapter ticks and track bar #2707
This commit is contained in:
parent
6e8c6aa740
commit
8a0fab2b20
@ -57,7 +57,6 @@ export default {
|
|||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
duration: {
|
duration: {
|
||||||
immediate: true,
|
|
||||||
handler() {
|
handler() {
|
||||||
this.setChapterTicks()
|
this.setChapterTicks()
|
||||||
}
|
}
|
||||||
@ -205,10 +204,14 @@ export default {
|
|||||||
},
|
},
|
||||||
windowResize() {
|
windowResize() {
|
||||||
this.setTrackWidth()
|
this.setTrackWidth()
|
||||||
|
this.setChapterTicks()
|
||||||
|
this.updatePlayedTrackWidth()
|
||||||
|
this.updateBufferTrack()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.setTrackWidth()
|
this.setTrackWidth()
|
||||||
|
this.setChapterTicks()
|
||||||
window.addEventListener('resize', this.windowResize)
|
window.addEventListener('resize', this.windowResize)
|
||||||
},
|
},
|
||||||
beforeDestroy() {
|
beforeDestroy() {
|
||||||
|
Loading…
Reference in New Issue
Block a user