From b756900bb236190cc23f8cade2bf7440e5235ba4 Mon Sep 17 00:00:00 2001 From: Shawn Rutledge Date: Mon, 10 Mar 2014 15:59:48 +0100 Subject: ScrollView: flick threshold comes from platform style QStyleHints::startDragDistance is used as the standard drag or flick threshold in QtQuick generally. We should follow suit because it may depend on platform characteristics such as screen resolution and sensitivity of the input devices. Change-Id: Ibbc7b4549351f795c10de792cb8fa3ff9f5ae58d Reviewed-by: Richard Moe Gustavsen --- src/controls/ScrollView.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/controls/ScrollView.qml') diff --git a/src/controls/ScrollView.qml b/src/controls/ScrollView.qml index 7e616392..af6a077e 100644 --- a/src/controls/ScrollView.qml +++ b/src/controls/ScrollView.qml @@ -237,7 +237,7 @@ FocusScope { anchors.fill: parent property int acceleration: 40 - property int flickThreshold: 20 + property int flickThreshold: Settings.dragThreshold property real speedThreshold: 3 property real ignored: 0.001 // ## flick() does not work with 0 yVelocity property int maxFlick: 400 -- cgit v1.2.1