Index: sources/gui/qml/components/RangeSlider.qml =================================================================== diff -u -r74de6c3e36568bf842648d1a9f8d5bb6949fca5b -r66e174574106639608fead82eba50c0a875c07de --- sources/gui/qml/components/RangeSlider.qml (.../RangeSlider.qml) (revision 74de6c3e36568bf842648d1a9f8d5bb6949fca5b) +++ sources/gui/qml/components/RangeSlider.qml (.../RangeSlider.qml) (revision 66e174574106639608fead82eba50c0a875c07de) @@ -182,11 +182,6 @@ /// \details regarding the current mouse x position selects the correct handler and updated the bound value. /// \param x : mouse x position. function setBound(x) { - if(curHandler === RangeSlider.HandlerOption.None) { - // The user did not select a handle - return - } - let mValue = setValue(x) // console.debug( maxValue - minValue, minValue, value, maxValue ) @@ -207,21 +202,14 @@ else checkLimitsMinValueBounds(mValue) } else { - if ( minAdjusted && maxAdjusted ) { - // min and max have been adjust initially - if ( minDiff < maxDiff ) { - // if (minDiff > limitGap) return // not sure if it needs but kept it as an idea. - checkLimitsMinValueBounds(mValue) - } - else { - // if (maxDiff > limitGap) return // not sure if it needs but kept it as an idea. - checkLimitsMaxValueBounds(mValue) - } - } else { - // if only one handle side is selected, adjust according to the selected - if ( curHandler === RangeSlider.HandlerOption.Max ) checkLimitsMaxValueBounds(mValue) - if ( curHandler === RangeSlider.HandlerOption.Min ) checkLimitsMinValueBounds(mValue) + if ( minDiff < maxDiff ) { + // if (minDiff > limitGap) return // not sure if it needs but kept it as an idea. + checkLimitsMinValueBounds(mValue) } + else { + // if (maxDiff > limitGap) return // not sure if it needs but kept it as an idea. + checkLimitsMaxValueBounds(mValue) + } } }