mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
SliderParameterAttachment: Allow right-click to change parameter value
Previously, right-clicking on a slider could change its value, but the parameter value would not be changed, leaving the slider in a different state to the parameter.
This commit is contained in:
parent
6f80be1edb
commit
8a95fb1c82
1 changed files with 2 additions and 4 deletions
|
|
@ -180,10 +180,8 @@ void SliderParameterAttachment::setValue (float newValue)
|
|||
|
||||
void SliderParameterAttachment::sliderValueChanged (Slider*)
|
||||
{
|
||||
if (ignoreCallbacks || ModifierKeys::currentModifiers.isRightButtonDown())
|
||||
return;
|
||||
|
||||
attachment.setValueAsPartOfGesture ((float) slider.getValue());
|
||||
if (! ignoreCallbacks)
|
||||
attachment.setValueAsPartOfGesture ((float) slider.getValue());
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue