gearmulator

Emulation of classic VA synths of the late 90s/2000s that are based on Motorola 56300 family DSPs
Log | Files | Refs | Submodules | README | LICENSE

commit 1098e340922f07bc04f4b2dacd42517c595007ed
parent e8e0bd37ee3fd5ccb6f9c1ec0615ad87bf3988bd
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date:   Fri, 31 May 2024 01:51:16 +0200

do not process mouse wheel if knob is disabled

Diffstat:
Msource/juceUiLib/slider.cpp | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/source/juceUiLib/slider.cpp b/source/juceUiLib/slider.cpp @@ -5,7 +5,7 @@ namespace genericUI void Slider::mouseWheelMove(const juce::MouseEvent& event, const juce::MouseWheelDetails& wheel) { // we use the default behaviour if ctrl/cmd is not pressed. If it is, we want to inc/dec single steps - if(!event.mods.isCommandDown()) + if(!event.mods.isCommandDown() || !isEnabled()) { juce::Slider::mouseWheelMove(event, wheel); return;