mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2025-07-15 00:14:52 +02:00
Update:Epub ereader show location at bottom of page #766
This commit is contained in:
parent
ac2b674ba5
commit
04bc74babe
4 changed files with 61 additions and 12 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue