Browse Source

Slider behaviour fix.

tags/2021-05-28
jules 12 years ago
parent
commit
19a6a282a2
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      modules/juce_gui_basics/widgets/juce_Slider.cpp

+ 6
- 1
modules/juce_gui_basics/widgets/juce_Slider.cpp View File

@@ -408,7 +408,12 @@ public:
void updateText()
{
if (valueBox != nullptr)
valueBox->setText (owner.getTextFromValue (currentValue.getValue()), dontSendNotification);
{
String newValue (owner.getTextFromValue (currentValue.getValue()));
if (newValue != valueBox->getText())
valueBox->setText (newValue, dontSendNotification);
}
}
double constrainedValue (double value) const


Loading…
Cancel
Save