Fix:Ignore swiping for audio player when modal is open #1099

This commit is contained in:
advplyr 2024-02-24 15:00:29 -06:00
parent e443ba09da
commit 15aaef742d

View file

@ -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