diff options
author | Mike Krus <mike.krus@kdab.com> | 2020-05-22 15:38:24 +0100 |
---|---|---|
committer | Mike Krus <mike.krus@kdab.com> | 2020-06-29 11:24:41 +0100 |
commit | 428115340bee4357d6821eee78e1fff0ae910712 (patch) | |
tree | 57927c8c460f1ef5b600b6232ca68071ac5f4cf6 /src/corelib | |
parent | 1f3af0f35c16b3d125f494b60290a867375217d8 (diff) |
Fix UITouch event handling on tvOS
On tvOS touchesEnded: occasionally gets called with touches that have
not been passed via the touchesBegan:. When this happens previously
cached touch event (that HAVE been passed to touchesBegan:) are no
longer valid.
This causes a crash when testing if new touches contain old ones (since
NSSet dereferences the needle which is no longer valid).
Fix uses the unique (unsigned int) hash that UIKIT assigns to the
UITouch instance so cached copies are never accessed.
Furthermore, tvOS only supports single touch so now just clearing cache
when touch has ended.
Task-number: QTBUG-84383
Pick-to: 5.15
Pick-to: 5.12
Change-Id: I7592cdde74ce834285e7b14196171f6b57736cc8
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/corelib')
0 files changed, 0 insertions, 0 deletions