Velocities reported by Flickable in onFlickStarted can be 0
authorMartin Jones <martin.jones@nokia.com>
Tue, 13 Sep 2011 02:50:48 +0000 (12:50 +1000)
committerQt by Nokia <qt-info@nokia.com>
Fri, 16 Sep 2011 00:15:03 +0000 (02:15 +0200)
commite79c448e28c67cb6acd63e8b4bac6c7b08c1f897
treefddd6c707e744849f73f4aca4cb14b70a17fcd10
parent8c175bee55f1e0e0bb27cbf72911fedf370c26c6
Velocities reported by Flickable in onFlickStarted can be 0

Change 55cfbdb7c64068ae68f7baaceb8acfb96cb0c07e manually applied
from Qt 4.7

Ensure the smoothed velocity is set at the start of the flick.  Ensure
that the smoothed velocity animation isn't restarted unless there is
new valid data.

Change-Id: Ia77249be9980aba268a1bfa0ea3f69c49fa09e5e
Reviewed-by: Bea Lam
Reviewed-on: http://codereview.qt-project.org/4712
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Martin Jones <martin.jones@nokia.com>
src/declarative/items/qsgflickable.cpp
src/qtquick1/graphicsitems/qdeclarativeflickable.cpp
tests/auto/declarative/qsgflickable/data/flickable03.qml
tests/auto/declarative/qsgflickable/tst_qsgflickable.cpp
tests/auto/qtquick1/qdeclarativeflickable/data/flickable03.qml
tests/auto/qtquick1/qdeclarativeflickable/tst_qdeclarativeflickable.cpp