From 7988190e735d65ec01135f4fd5a69a579c05fc25 Mon Sep 17 00:00:00 2001 From: jules Date: Wed, 23 Dec 2015 14:57:32 +0000 Subject: [PATCH] Plugin demo: avoided the slider jumping when being dragged and automated at the same time --- examples/audio plugin demo/Source/PluginEditor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/audio plugin demo/Source/PluginEditor.cpp b/examples/audio plugin demo/Source/PluginEditor.cpp index 182d783dfa..1d13db2a84 100644 --- a/examples/audio plugin demo/Source/PluginEditor.cpp +++ b/examples/audio plugin demo/Source/PluginEditor.cpp @@ -43,7 +43,7 @@ public: { const float newValue = param.getValue(); - if (newValue != (float) Slider::getValue()) + if (newValue != (float) Slider::getValue() && ! isMouseButtonDown()) Slider::setValue (newValue); }