Browse Source

Made Sliders preserve their skews when updating their range

tags/2021-05-28
Tom Poole 7 years ago
parent
commit
9f85d53c66
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      modules/juce_gui_basics/widgets/juce_Slider.cpp

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

@@ -136,7 +136,8 @@ public:
void setRange (double newMin, double newMax, double newInt)
{
normRange = NormalisableRange<double> (newMin, newMax, newInt);
normRange = NormalisableRange<double> (newMin, newMax, newInt,
normRange.skew, normRange.symmetricSkew);
updateRange();
}


Loading…
Cancel
Save