summaryrefslogtreecommitdiff
path: root/src/controls/Slider.qml
diff options
context:
space:
mode:
Diffstat (limited to 'src/controls/Slider.qml')
-rw-r--r--src/controls/Slider.qml4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/controls/Slider.qml b/src/controls/Slider.qml
index 07ad74c4..ff2f0c23 100644
--- a/src/controls/Slider.qml
+++ b/src/controls/Slider.qml
@@ -37,6 +37,7 @@
**
****************************************************************************/
+import QtQml 2.14 as Qml
import QtQuick 2.2
import QtQuick.Controls 1.2
import QtQuick.Controls.Private 1.0
@@ -310,11 +311,12 @@ Control {
// During the drag, we simply ignore the position set from the range, this
// means that setting a value while dragging will not "interrupt" the
// dragging activity.
- Binding {
+ Qml.Binding {
when: !mouseArea.drag.active
target: fakeHandle
property: __horizontal ? "x" : "y"
value: range.position
+ restoreMode: Binding.RestoreBinding
}
WheelArea {