diff --git a/src/renderer/components/ft-video-player/ft-video-player.js b/src/renderer/components/ft-video-player/ft-video-player.js
index 4df9f2c4..3177ddf8 100644
--- a/src/renderer/components/ft-video-player/ft-video-player.js
+++ b/src/renderer/components/ft-video-player/ft-video-player.js
@@ -155,6 +155,10 @@ export default Vue.extend({
return this.$store.getters.getAutoplayVideos
},
+ videoVolumeMouseScroll: function () {
+ return this.$store.getters.getVideoVolumeMouseScroll
+ },
+
useSponsorBlock: function () {
return this.$store.getters.getUseSponsorBlock
},
@@ -251,7 +255,11 @@ export default Vue.extend({
this.player.on('mouseleave', this.removeMouseTimeout)
this.player.on('volumechange', this.updateVolume)
- this.player.controlBar.getChild('volumePanel').on('mousewheel', this.mouseScrollVolume)
+ if (this.videoVolumeMouseScroll) {
+ this.player.on('wheel', this.mouseScrollVolume)
+ } else {
+ this.player.controlBar.getChild('volumePanel').on('wheel', this.mouseScrollVolume)
+ }
this.player.on('fullscreenchange', this.fullscreenOverlay)
this.player.on('fullscreenchange', this.toggleFullscreenClass)
diff --git a/src/renderer/components/player-settings/player-settings.js b/src/renderer/components/player-settings/player-settings.js
index 49a74d0d..f03baf8d 100644
--- a/src/renderer/components/player-settings/player-settings.js
+++ b/src/renderer/components/player-settings/player-settings.js
@@ -90,6 +90,10 @@ export default Vue.extend({
return this.$store.getters.getHideRecommendedVideos
},
+ videoVolumeMouseScroll: function () {
+ return this.$store.getters.getVideoVolumeMouseScroll
+ },
+
formatNames: function () {
return [
this.$t('Settings.Player Settings.Default Video Format.Dash Formats'),
@@ -127,7 +131,8 @@ export default Vue.extend({
'updateDefaultVolume',
'updateDefaultPlayback',
'updateDefaultVideoFormat',
- 'updateDefaultQuality'
+ 'updateDefaultQuality',
+ 'updateVideoVolumeMouseScroll'
])
}
})
diff --git a/src/renderer/components/player-settings/player-settings.vue b/src/renderer/components/player-settings/player-settings.vue
index 371eff7c..6594c1d7 100644
--- a/src/renderer/components/player-settings/player-settings.vue
+++ b/src/renderer/components/player-settings/player-settings.vue
@@ -37,6 +37,12 @@
:default-value="defaultTheatreMode"
@change="updateDefaultTheatreMode"
/>
+