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:
parent
47c48b2f6a
commit
ea7677970c
2 changed files with 7 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue