mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-16 23:34:40 -05:00
remove enableModifiersForNumbers
This commit is contained in:
parent
872ba191b3
commit
7849af14f6
1 changed files with 2 additions and 12 deletions
|
@ -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);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue