diff options
author | Martin Jones <martin.jones@nokia.com> | 2011-06-29 06:33:04 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2011-06-29 06:33:04 (GMT) |
commit | 20f8357c8ee570f57091e20b9c0a9a1455dc1e8d (patch) | |
tree | 0a1f94f99a1a6268313f2f9135bac190f50f6504 | |
parent | 6fb7cdf8741ca924413dd7cbc09fad91ddc04823 (diff) | |
download | Qt-20f8357c8ee570f57091e20b9c0a9a1455dc1e8d.zip Qt-20f8357c8ee570f57091e20b9c0a9a1455dc1e8d.tar.gz Qt-20f8357c8ee570f57091e20b9c0a9a1455dc1e8d.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
-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 |