commit 8bd735abbdfcafba2600758244273eaea5b5ea3e
parent 06022ddf58b85c38d07a60e507cec78cd353cbc7
Author: Alexandre BIQUE <bique.alexandre@gmail.com>
Date: Tue, 14 Sep 2021 16:58:22 +0200
Ignore param updates when the knob is being adjusted
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/examples/plugins/gui/parameter-proxy.cc b/examples/plugins/gui/parameter-proxy.cc
@@ -55,6 +55,9 @@ void ParameterProxy::setValueFromUI(double value) {
}
void ParameterProxy::setValueFromPlugin(double value) {
+ if (_isAdjusting)
+ return;
+
value = clip(value);
if (value == _value)
return;