Browse Source

modified valueChanged() to notify host only on mouse clicks.

tags/2021-05-28
luigisambuy 8 years ago
parent
commit
1e9af22f96
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      examples/audio plugin demo/Source/PluginEditor.cpp

+ 4
- 1
examples/audio plugin demo/Source/PluginEditor.cpp View File

@@ -28,7 +28,10 @@ public:
void valueChanged() override
{
param.setValueNotifyingHost ((float) Slider::getValue());
if (isMouseButtonDown())
param.setValueNotifyingHost ((float) Slider::getValue());
else
param.setValue ((float) Slider::getValue());
}
void timerCallback() override { updateSliderPos(); }


Loading…
Cancel
Save