1
0
Fork 0
mirror of https://codeberg.org/ashley/poke.git synced 2024-11-16 23:14:39 -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 = {
volumeStep: 0.1,
seekStep: 5,
enableMute: true,
enableMute: false,
enableVolumeScroll: false,
enableHoverScroll: false,
enableFullscreen: true,
@ -327,17 +327,7 @@
activeEl == pEl.querySelector('.vjs-control-bar') ||
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);
}
}
}
}
};