mirror of
				https://github.com/advplyr/audiobookshelf.git
				synced 2025-10-27 11:18:14 +01:00 
			
		
		
		
	Fix:Chapter modal scroll to current chapter
This commit is contained in:
		
							parent
							
								
									5777184cae
								
							
						
					
					
						commit
						630ece82ad
					
				| @ -34,11 +34,6 @@ export default { | ||||
|   data() { | ||||
|     return {} | ||||
|   }, | ||||
|   watch: { | ||||
|     value(newVal) { | ||||
|       this.$nextTick(this.scrollToChapter) | ||||
|     } | ||||
|   }, | ||||
|   computed: { | ||||
|     show: { | ||||
|       get() { | ||||
| @ -53,7 +48,7 @@ export default { | ||||
|       return this.playbackRate | ||||
|     }, | ||||
|     currentChapterId() { | ||||
|       return this.currentChapter ? this.currentChapter.id : null | ||||
|       return this.currentChapter?.id || null | ||||
|     }, | ||||
|     currentChapterStart() { | ||||
|       return (this.currentChapter?.start || 0) / this._playbackRate | ||||
| @ -74,6 +69,11 @@ export default { | ||||
|         } | ||||
|       } | ||||
|     } | ||||
|   }, | ||||
|   updated() { | ||||
|     if (this.value) { | ||||
|       this.$nextTick(this.scrollToChapter) | ||||
|     } | ||||
|   } | ||||
| } | ||||
| </script> | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user