aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/doc/snippets
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2022-05-06 16:31:37 +0200
committerShawn Rutledge <shawn.rutledge@qt.io>2022-05-11 12:56:22 +0200
commit8068bde891eefe99a43deb83e58166b476f65225 (patch)
tree477456cdccce7346cd6c13f2d551a5593f5b7a4f /src/qml/doc/snippets
parent5b0bb8d78e1854f3a23d7dd0bb286f524b272c37 (diff)
QQuickFlickable: fix flicking when item is rotated
QEventPoint::velocity() is in screen coordinates, as documented; it needs to be transformed to local coordinates in case the Flickable is rotated and/or scaled. windowToItemTransform() gives us a composite transform matrix; we remove the translation components to get only the rotation and scaling. Also fix the press position calculation in handleReleaseEvent(). With the manual test one can pinch to scale and rotate a Flickable, then verify that with a single finger, the Flickable gets scrolled by an appropriate distance in spite of that. Done-with: Ivan Solovev Fixes: QTBUG-99639 Pick-to: 6.3 6.2 Change-Id: I60af1dd932835d358baa1422523cc24b2ab046a0 Reviewed-by: Ivan Solovev <ivan.solovev@qt.io> Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
Diffstat (limited to 'src/qml/doc/snippets')
0 files changed, 0 insertions, 0 deletions