We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da237d1 commit 6524f72Copy full SHA for 6524f72
src/components/Audios.vue
@@ -83,6 +83,17 @@ export default {
83
},
84
85
86
+ mounted() {
87
+ // Prevent swiping to the next/previous item when scrubbing the timeline or changing volume
88
+ [...this.$el.querySelectorAll('.plyr__controls__item')].forEach(control => {
89
+ if (!control?.addEventListener) {
90
+ return
91
+ }
92
+ control.addEventListener('mouseenter', this.disableSwipe)
93
+ control.addEventListener('mouseleave', this.enableSwipe)
94
+ })
95
+ },
96
+
97
methods: {
98
donePlaying() {
99
this.$refs.audio.autoplay = false
0 commit comments