mirror of
https://github.com/sudoxnym/audiobookshelf-atv.git
synced 2026-07-13 15:39:08 +00:00
Fix:Epub ereader swiping moving 2 pages #802
This commit is contained in:
parent
e53901e7a4
commit
ac2b674ba5
1 changed files with 0 additions and 11 deletions
|
|
@ -289,7 +289,6 @@ export default {
|
|||
const touchDistanceX = Math.abs(this.touchendX - this.touchstartX)
|
||||
const touchDistanceY = Math.abs(this.touchendY - this.touchstartY)
|
||||
const touchDistance = Math.sqrt(Math.pow(this.touchstartX - this.touchendX, 2) + Math.pow(this.touchstartY - this.touchendY, 2))
|
||||
console.log('[Reader] Touch distance=', touchDistance)
|
||||
if (touchDistance < 30) {
|
||||
if (this.showSettingsModal) {
|
||||
this.showSettingsModal = false
|
||||
|
|
@ -303,14 +302,6 @@ export default {
|
|||
return
|
||||
}
|
||||
this.hideToolbar()
|
||||
if (this.touchendX < this.touchstartX) {
|
||||
console.log('[Reader] Gesture next page')
|
||||
this.next()
|
||||
}
|
||||
if (this.touchendX > this.touchstartX) {
|
||||
console.log('[Reader] Gesture prev page')
|
||||
this.prev()
|
||||
}
|
||||
},
|
||||
showToolbar() {
|
||||
this.showingToolbar = true
|
||||
|
|
@ -325,7 +316,6 @@ export default {
|
|||
else this.showToolbar()
|
||||
},
|
||||
touchstart(e) {
|
||||
console.log('[Reader] Touch start')
|
||||
// Ignore rapid touch
|
||||
if (this.touchstartTime && Date.now() - this.touchstartTime < 250) {
|
||||
return
|
||||
|
|
@ -337,7 +327,6 @@ export default {
|
|||
this.touchIdentifier = e.touches[0].identifier
|
||||
},
|
||||
touchend(e) {
|
||||
console.log('[Reader] Touch end')
|
||||
if (this.touchIdentifier !== e.changedTouches[0].identifier) {
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue