Update:Epub ereader show location at bottom of page #766

This commit is contained in:
advplyr 2023-09-16 15:12:20 -05:00
parent ac2b674ba5
commit 04bc74babe
4 changed files with 61 additions and 12 deletions

View file

@ -282,7 +282,6 @@ export default {
// Touch must be less than 1s. Must be > 60px drag and X distance > Y distance
const touchTimeMs = Date.now() - this.touchstartTime
if (touchTimeMs >= 1000) {
console.log('Touch too long', touchTimeMs)
return
}
@ -302,6 +301,14 @@ export default {
return
}
this.hideToolbar()
if (!this.isEpub) {
if (this.touchendX < this.touchstartX) {
this.next()
}
if (this.touchendX > this.touchstartX) {
this.prev()
}
}
},
showToolbar() {
this.showingToolbar = true