Fix jump and property changes on first move when dragging a Flickable.
authorAndrew den Exter <andrew.den.exter@jollamobile.com>
Tue, 12 Mar 2013 04:05:32 +0000 (14:05 +1000)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 19 Mar 2013 01:20:05 +0000 (02:20 +0100)
commitea8b11259ad68a8ff44708786ecf54e5a8a272d8
treee53b929afaa993b38052bcc505badff81c66ac9e
parentfb8bc2ab5f834dc25bc6178776f67facaf76d698
Fix jump and property changes on first move when dragging a Flickable.

Fixes a regression introduced by https://codereview.qt-project.org/48690
whereby on the first mouse move the contentItem was moved the total
distance from the touch point to where the drag distance was exceeded.
For large drag thresholds this causes a noticeable jump. Reverting the
dragStartOffset portion of that change fixes the regression.

That same change was also resposible for the property update regression
https://codereview.qt-project.org/49768 attempted to fix.  That change
is also reverted as it was unnecessary and may have introduced some
regressions of its own.

Task-number: QTBUG-30032
Change-Id: I7723b459cc5a6a0731893aeb6332d00cad1bd79b
Reviewed-by: Martin Jones <martin.jones@jollamobile.com>
src/quick/items/qquickflickable.cpp
tests/auto/quick/qquickmousearea/tst_qquickmousearea.cpp