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.
This commit is contained in:
Michael Gregorius
2025-02-01 15:23:55 +01:00
parent 8f0d877251
commit ff435d551b

View File

@@ -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;
}