From dfc74f42d339e94617900447437d15cbaf08b08e Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Tue, 21 Mar 2017 19:01:01 +0100 Subject: Slider: Don't suppress updates by dragThreshold on non-touchscreens When using a mouse, you want a slider to react immediately to input, not only if you move beyond a certain threshold. With the threshold it is very hard to accurately position the slider. On touchscreens, the threshold is necessary to allow for unrelated events, like flicking views, to not interfere with the value. Change-Id: I6cb8252338f20de559e062e738118593ffc1e099 Task-number: QTBUG-47081 Reviewed-by: J-P Nurmi --- src/controls/Slider.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/controls') diff --git a/src/controls/Slider.qml b/src/controls/Slider.qml index bf54e93e..a90bc022 100644 --- a/src/controls/Slider.qml +++ b/src/controls/Slider.qml @@ -264,7 +264,7 @@ Control { onPositionChanged: { if (pressed) - updateHandlePosition(mouse, preventStealing) + updateHandlePosition(mouse, !Settings.hasTouchScreen || preventStealing) var point = mouseArea.mapToItem(fakeHandle, mouse.x, mouse.y) handleHovered = fakeHandle.contains(Qt.point(point.x, point.y)) -- cgit v1.2.1