diff options
author | Martin Jones <martin.jones@nokia.com> | 2011-06-29 06:33:04 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2011-07-08 06:57:11 (GMT) |
commit | ca877686aa220d20905dce171efc4c8b035c0af5 (patch) | |
tree | 64a63c348fd64814de883e47b78202c5763c6804 /src/declarative | |
parent | 0d670396f7e4b24f0800ad0e7f219727a47bfba6 (diff) | |
download | Qt-ca877686aa220d20905dce171efc4c8b035c0af5.zip Qt-ca877686aa220d20905dce171efc4c8b035c0af5.tar.gz Qt-ca877686aa220d20905dce171efc4c8b035c0af5.tar.bz2 |
Flickable is too sensitive.
Drag, stop, release should result in a pan, which does not trigger
a flick. The current flick threshold velocity is too low, leading
to flicks when a pan gesture is more desireable.
Change-Id: I3aa3bf28cc0ccbb043f3390ff4e044ea587ba3ff
Task-number: QTBUG-19933
Reviewed-by: Bea Lam
(cherry picked from commit 20f8357c8ee570f57091e20b9c0a9a1455dc1e8d)
Diffstat (limited to 'src/declarative')
-rw-r--r-- | src/declarative/graphicsitems/qdeclarativeflickable_p_p.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativeflickable_p_p.h b/src/declarative/graphicsitems/qdeclarativeflickable_p_p.h index 46b2104..1c749cd 100644 --- a/src/declarative/graphicsitems/qdeclarativeflickable_p_p.h +++ b/src/declarative/graphicsitems/qdeclarativeflickable_p_p.h @@ -67,7 +67,11 @@ QT_BEGIN_NAMESPACE // Really slow flicks can be annoying. -const qreal MinimumFlickVelocity = 75.0; +#ifndef QML_FLICK_MINVELOCITY +#define QML_FLICK_MINVELOCITY 175 +#endif + +const qreal MinimumFlickVelocity = QML_FLICK_MINVELOCITY; class QDeclarativeFlickableVisibleArea; class QDeclarativeFlickablePrivate : public QDeclarativeItemPrivate, public QDeclarativeItemChangeListener |