diff options
author | Jan Arve Sæther <jan-arve.saether@qt.io> | 2017-11-23 10:56:06 +0100 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2017-11-24 12:55:31 +0000 |
commit | 6eabb3edf27e3b73205fa70e4497ce7ec1201adc (patch) | |
tree | c4056fc5271f41eff6f2d84f5e1fa7545160063b /tests/manual | |
parent | 2f91b0f25fff560de27632ec9d947c890426664e (diff) |
Fix a bug with calculation of translation in DragHandler
The problem was that the start position of the target item
(m_targetStartPos) was not always updated.
In combination with several handlers (this bug was observed with
PinchHandler and DragHandler as siblings) it is quite likely that the
DragHandler will get a press, but not activate (because the PinchHandler
might activate instead). It would therefore not deactivate (so it would
not reset m_targetStartPos), and as a consequence the m_targetStartPos was
not updated to its correct value the next time we initiated a drag because
m_targetStartPos wasn't null.
Change-Id: Icf3089fc685cfbcbcfba638966a2e8ad1c8c089f
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'tests/manual')
0 files changed, 0 insertions, 0 deletions