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

modified sliderValueChanged() to notify host only on mouse clicks

This commit is contained in:
luigisambuy 2016-08-22 11:51:32 +01:00
parent 47c48b2f6a
commit ea7677970c
2 changed files with 7 additions and 2 deletions

View file

@ -99,7 +99,12 @@ public:
void sliderValueChanged (Slider* slider) override
{
if (AudioProcessorParameter* param = getParameterForSlider (slider))
param->setValueNotifyingHost ((float) slider->getValue());
{
if (slider->isMouseButtonDown())
param->setValueNotifyingHost ((float) slider->getValue());
else
param->setValue ((float) slider->getValue());
}
}
void sliderDragStarted (Slider* slider) override

View file

@ -288,7 +288,7 @@ public:
bool success = setBusArrangementFromTotalChannelNum (maxNumInChannels, maxNumOutChannels);
ignoreUnused (success);
// please file a bug if you hit this assertsion!
// please file a bug if you hit this assertion!
jassert (maxNumInChannels == busUtils.findTotalNumChannels (true) && success
&& maxNumOutChannels == busUtils.findTotalNumChannels (false));
}