mirror of
https://github.com/LMMS/lmms.git
synced 2025-12-24 07:08:28 -05:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user