diff --git a/components/RangeSelector/src/RangeSelector.cs b/components/RangeSelector/src/RangeSelector.cs index 7cf3bdbb..0b527284 100644 --- a/components/RangeSelector/src/RangeSelector.cs +++ b/components/RangeSelector/src/RangeSelector.cs @@ -34,7 +34,6 @@ public partial class RangeSelector : Control internal const string MinPressedState = "MinPressed"; internal const string MaxPressedState = "MaxPressed"; - private const double Epsilon = 0.01; private const double DefaultMinimum = 0.0; private const double DefaultMaximum = 10.0; private const double DefaultStepFrequency = 1; @@ -168,7 +167,7 @@ private void VerifyValues() if (Minimum == Maximum) { - Maximum += Epsilon; + throw new ArgumentException("Maximum and Minimum values cannot be equal."); } if (!_maxSet)