Qt Declarative (Quick 2)
Go to file
Jan Arve Sæther e4bea7805a Fix draghandler to respect axis constraints
..while its (ancestor) coordinate system has changed during the drag.

For example, ensure that a DragHandler-based Slider keeps its knob centered.
If the Slider is used on a Flickable which you are flicking with a second
finger, then the coordinate system is changing underneath the Slider.

The problem was that DragHandler stored the initial drag position of the
target when the target item was pressed, and used that throughout the
whole drag operation. Unfortunately if the target item was inside a
Flickable that got flicked during a drag operation, that initial position
was not updated (and thus, incorrect).

Instead of storing the initial target position in scene coordinates, we
now store the position that got pressed in local target coordinates, and
ensure that in any further updates the touchpoint have the same local
position (by moving the target).

Task-number: QTBUG-64852
Change-Id: I25012d34d88f45c7eb9c711db0037d530cf10854
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
2018-02-21 20:13:00 +00:00
config.tests/d3d12
dist Add changes file for Qt 5.10.1 2018-02-06 11:56:57 +00:00
examples Merge remote-tracking branch 'origin/5.10' into 5.11 2018-02-12 16:31:13 +01:00
features
src Fix draghandler to respect axis constraints 2018-02-21 20:13:00 +00:00
tests Fix draghandler to respect axis constraints 2018-02-21 20:13:00 +00:00
tools qmlcachegen: fix error messages for js files 2018-02-20 16:31:53 +00:00
.gitattributes
.gitignore
.gitmodules Run ES5 tests on Linux/x86-64 2017-03-24 20:21:36 +00:00
.qmake.conf Bump version 2018-02-07 13:09:17 +01:00
.tag
LICENSE.FDL
LICENSE.GPL2
LICENSE.GPL3
LICENSE.GPL3-EXCEPT
LICENSE.LGPL3
configure.json
qtdeclarative.pro
sync.profile fix QtQmlDevTools in framework builds in a better way 2017-04-11 16:48:03 +00:00