From ff435d551b5d96c7307c484799b9c38ec60f5542 Mon Sep 17 00:00:00 2001 From: Michael Gregorius Date: Sat, 1 Feb 2025 15:23:55 +0100 Subject: [PATCH] Work around a Qt bug Work around a Qt bug in conjunction with the scroll wheel and the Alt key. Simply return 0 for the fader delta as soon as Alt is pressed. --- src/gui/widgets/Fader.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/gui/widgets/Fader.cpp b/src/gui/widgets/Fader.cpp index fee67b03d..205aeda1b 100644 --- a/src/gui/widgets/Fader.cpp +++ b/src/gui/widgets/Fader.cpp @@ -283,6 +283,11 @@ float Fader::determineAdjustmentDelta(const Qt::KeyboardModifiers & modifiers) c // The control key gives more control, i.e. it enables more fine-grained adjustments return 0.1f; } + else if (modifiers | Qt::AltModifier) + { + // Work around a Qt bug in conjunction with the scroll wheel and the Alt key + return 0.f; + } return 1.f; }