mirror of https://github.com/FreeTubeApp/FreeTube
! Fix possible to do both actions in video player by scrolling (#2989)
"Scroll playback rate over video player" and "Skip by Scrolling Over Video Player"
This commit is contained in:
parent
90ac5e6bce
commit
1a0786f39b
|
@ -729,6 +729,11 @@ export default Vue.extend({
|
|||
},
|
||||
|
||||
mouseScrollSkip: function (event) {
|
||||
// Avoid doing both
|
||||
if ((event.ctrlKey || event.metaKey) && this.videoPlaybackRateMouseScroll) {
|
||||
return
|
||||
}
|
||||
|
||||
// ensure that the mouse is over the player
|
||||
if (event.target && (event.target.matches('.vjs-tech') || event.target.matches('.ftVideoPlayer'))) {
|
||||
event.preventDefault()
|
||||
|
|
Loading…
Reference in New Issue