summaryrefslogtreecommitdiffstats
path: root/src/controls/ScrollView.qml
diff options
context:
space:
mode:
authorShawn Rutledge <[email protected]>2014-03-10 15:59:48 +0100
committerThe Qt Project <[email protected]>2014-03-18 10:09:40 +0100
commitb756900bb236190cc23f8cade2bf7440e5235ba4 (patch)
treebf340575f8290d50632c7117f7d16f60ddd393a6 /src/controls/ScrollView.qml
parent354ff5e7733703ba6304ccf3241ab35b3e235cf1 (diff)
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 <[email protected]>
Diffstat (limited to 'src/controls/ScrollView.qml')
-rw-r--r--src/controls/ScrollView.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/controls/ScrollView.qml b/src/controls/ScrollView.qml
index 7e6163922..af6a077e0 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