1
0
Fork 0
mirror of https://codeberg.org/ashley/poke.git synced 2024-11-16 23:34:40 -05:00

remove enableModifiersForNumbers

This commit is contained in:
ashley 2024-08-11 09:29:36 +00:00
parent 872ba191b3
commit 7849af14f6

View file

@ -35,7 +35,7 @@
var def_options = { var def_options = {
volumeStep: 0.1, volumeStep: 0.1,
seekStep: 5, seekStep: 5,
enableMute: true, enableMute: false,
enableVolumeScroll: false, enableVolumeScroll: false,
enableHoverScroll: false, enableHoverScroll: false,
enableFullscreen: true, enableFullscreen: true,
@ -327,17 +327,7 @@
activeEl == pEl.querySelector('.vjs-control-bar') || activeEl == pEl.querySelector('.vjs-control-bar') ||
volumeHover) { volumeHover) {
if (enableVolumeScroll) {
event = window.event || event;
var delta = Math.max(-1, Math.min(1, (event.wheelDelta || -event.detail)));
event.preventDefault();
if (delta == 1) {
player.volume(player.volume() + volumeStep);
} else if (delta == -1) {
player.volume(player.volume() - volumeStep);
}
}
} }
} }
}; };