I was scrolling through my media library when unexpectedly the volume of fb2k changed. I absolutely do not want my mouse wheel to change any volume settings. Is there a way to disable this behavior?
This is version 2.1.6 x64.
Looking at the panel there is some script code here:
//volume (moved to png for better anchor transition)
this.buttons.volume = new _button(panel.w - ( LM * 55 ) - bs, 7, bs, bs30, {
char : fb.Volume === -100 ? chars.volume
: fb.Volume > -5 ? chars.volume4
: fb.Volume > -15 ? chars.volume3
: chars.volume2,
colour: fb.Volume === -100 ? colours.redred : colours.buttons
}, {
char : fb.Volume === -100 ? chars.volume
: fb.Volume > -5 ? chars.volume4
: fb.Volume > -15 ? chars.volume3
: chars.volume2,
colour: fb.Volume === -100 ? colours.red : colours.accent
}, function () {
if (utils.IsKeyPressed(VK_SHIFT)) {
menu();
}
fb.VolumeMute();
}, 'Mute');
I continued scrolling through the script code to find this:
function on_mouse_wheel(s) {
if (seekbar.wheel(s)) {
return;
}
if (s == 1) {
fb.VolumeUp();
} else {
fb.VolumeDown();
}
//volume
volume.wheel(s);
}
This looks like the culprit. I will delete this function to see if this issue goes away.
Deleting the function above resolves the issue. The mouse wheel no longer changes volume.
This is from La Noire theme. Right click the volume, then click Configure. Scroll down the script until you find the function on_mouse_wheel(s) depicted above. Delete this function in its entirety, and the mouse wheel will never change volume.