mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-11-28 03:02:45 +01:00
Fix:Back button closes ebook #709
This commit is contained in:
1 parent
410648e316
commit
2643e98fc0
2 files changed
+12
No files matched your search
@@ -148,11 +148,16 @@ export default {
|
||||
this.touchendY = e.changedTouches[0].screenY
|
||||
this.handleGesture()
|
||||
},
|
||||
closeEvt() {
|
||||
this.show = false
|
||||
},
|
||||
registerListeners() {
|
||||
this.$eventBus.$on('close-ebook', this.closeEvt)
|
||||
document.body.addEventListener('touchstart', this.touchstart)
|
||||
document.body.addEventListener('touchend', this.touchend)
|
||||
},
|
||||
unregisterListeners() {
|
||||
this.$eventBus.$on('close-ebook', this.closeEvt)
|
||||
document.body.removeEventListener('touchstart', this.touchstart)
|
||||
document.body.removeEventListener('touchend', this.touchend)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user