Fixes video volume scroll from preventing vjs-menu scrolling (#1650)

This commit is contained in:
Jason 2021-09-05 14:39:44 -05:00 committed by GitHub
parent 218721c291
commit 4e5976c275
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -466,7 +466,7 @@ export default Vue.extend({
},
mouseScrollVolume: function (event) {
if (event.target) {
if (event.target && !event.currentTarget.querySelector('.vjs-menu:hover')) {
event.preventDefault()
if (this.player.muted() && event.wheelDelta > 0) {