diff options
author | Andy Shaw <andy.shaw@qt.io> | 2020-02-07 11:33:50 +0100 |
---|---|---|
committer | Andy Shaw <andy.shaw@qt.io> | 2020-02-07 15:30:12 +0100 |
commit | 025f938c1b4676782674d54375e1e4e560e4b6cd (patch) | |
tree | 9dc4d3ec2c181caf987e9c7d80e3dffca2cf8c77 /src/imports/controls | |
parent | b10912ba731144e8c41cbfa35fb1553ad04b2b88 (diff) |
Account for when a touch event is synthesized by Qt as a mouse event
When a control is on a Flickable with a pressDelay then any press events
sent from a touch device will be replayed as mouse events due to the
delay. As a result we cannot depend on the fact that we got the first
press as a touch event when checking if the id matches before accepting
it. So we need to keep the previous pos when it is a synthesized mouse
event so we can ensure the release is also accepted.
Fixes: QTBUG-77202
Change-Id: I6f5d8506bd803daf834093e8fd412504150c4ca6
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/imports/controls')
0 files changed, 0 insertions, 0 deletions