mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2025-07-10 22:14:48 +02:00
Fix:Ignore swiping for audio player when modal is open #1099
This commit is contained in:
parent
e443ba09da
commit
15aaef742d
1 changed files with 1 additions and 1 deletions
|
@ -652,7 +652,7 @@ export default {
|
||||||
this.closePlayback()
|
this.closePlayback()
|
||||||
},
|
},
|
||||||
touchstart(e) {
|
touchstart(e) {
|
||||||
if (!e.changedTouches) return
|
if (!e.changedTouches || this.$store.state.globals.isModalOpen) return
|
||||||
const touchPosY = e.changedTouches[0].pageY
|
const touchPosY = e.changedTouches[0].pageY
|
||||||
// when minimized only listen to touchstart on the player
|
// when minimized only listen to touchstart on the player
|
||||||
if (!this.showFullscreen && touchPosY < window.innerHeight - 120) return
|
if (!this.showFullscreen && touchPosY < window.innerHeight - 120) return
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue