1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-27 02:20:05 +00:00

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

This commit is contained in:
luigisambuy 2016-08-19 11:38:35 +01:00
parent 08b2116c2b
commit 1e9af22f96

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(); }