Index: sources/gui/qml/components/Slider.qml =================================================================== diff -u -rf3a336a173b0fc1198a2e13d9da36d06dc911fcc -ra070e7cd1dc7dcb4ba7fc5906c195357fe95d2f9 --- sources/gui/qml/components/Slider.qml (.../Slider.qml) (revision f3a336a173b0fc1198a2e13d9da36d06dc911fcc) +++ sources/gui/qml/components/Slider.qml (.../Slider.qml) (revision a070e7cd1dc7dcb4ba7fc5906c195357fe95d2f9) @@ -72,16 +72,20 @@ if (vInStepSegments) { amountChanged = step } + let newValue = Number.NaN - if(vIsIncrement) + if(vIsIncrement) { newValue = _root.value + amountChanged - else + } else { newValue = _root.value - amountChanged + } - // Calculate the x position of the new value - let divisor = (maximum != minimum) ? (maximum - minimum) : 1 - let calculatedX = ((newValue - minimum) * _root.width) / divisor - setValue(calculatedX) + // Capping values based on min/max threshold + if ( newValue < minimum ) newValue = minimum + if ( newValue > maximum ) newValue = maximum + + // update new value + update(newValue.toFixed(decimal)) } function setActive(active) {