Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Mouse Wheel Changes Volume; Can I Disable This? (Read 838 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Mouse Wheel Changes Volume; Can I Disable This?

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:

Code: [Select]
	//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');

Re: Mouse Wheel Changes Volume; Can I Disable This?

Reply #1
I continued scrolling through the script code to find this:

Code: [Select]
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.

Re: Mouse Wheel Changes Volume; Can I Disable This?

Reply #2
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.