diff options
author | Shawn Rutledge <shawn.rutledge@digia.com> | 2014-03-10 15:59:48 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-03-18 10:09:40 +0100 |
commit | b756900bb236190cc23f8cade2bf7440e5235ba4 (patch) | |
tree | bf340575f8290d50632c7117f7d16f60ddd393a6 /src/controls/ScrollView.qml | |
parent | 354ff5e7733703ba6304ccf3241ab35b3e235cf1 (diff) | |
download | qtquickcontrols-b756900bb236190cc23f8cade2bf7440e5235ba4.tar.gz |
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 <richard.gustavsen@digia.com>
Diffstat (limited to 'src/controls/ScrollView.qml')
-rw-r--r-- | src/controls/ScrollView.qml | 2 |
1 files changed, 1 insertions, 1 deletions
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 |