1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Plugin demo: avoided the slider jumping when being dragged and automated at the same time

This commit is contained in:
jules 2015-12-23 14:57:32 +00:00
parent 86a745dc35
commit 7988190e73

View file

@ -43,7 +43,7 @@ public:
{
const float newValue = param.getValue();
if (newValue != (float) Slider::getValue())
if (newValue != (float) Slider::getValue() && ! isMouseButtonDown())
Slider::setValue (newValue);
}