diff options
author | Kirill Burtsev <kirill.burtsev@qt.io> | 2020-10-16 21:07:10 +0200 |
---|---|---|
committer | Kirill Burtsev <kirill.burtsev@qt.io> | 2020-12-02 23:54:03 +0100 |
commit | 7adea5999b3eb1ac77adeb0580cb98ce35eb6ffd (patch) | |
tree | 81cea99cd79bbebe5f7dc7ac0b68bfa3456da558 /tests/auto/quick/qmltests | |
parent | 2dc642d3f97bf457d7cf57265a35eb8b1bd83a8d (diff) |
Fix handling of more than one finger for touch event
This change addresses following wrong assumptions implemented earlier:
* fix assert condition for custom MotionEventQt: pointer index is only
reserved only for two distinct events POINTER_UP and POINTER_DOWN,
which represent one single non first/last pointer up and down event.
* MotionEvent API doesn't support delivering multiple touch point
changes at once, hence code should send every touch point's up/down
step by step to not confuse gesture detection classes in chromimum
(ultimately fixing arising asserts which old code was triggering before).
* MotionEvent shouldn't contain more touch points then were already
forwarded or reported released, hence every step should contain only
part of all touch points received in handleTouchEvent.
Fixes: QTBUG-86389
Change-Id: I62275dc295494f88a6e44f36fe72f5f8227e37d4
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Reviewed-by: Michal Klocek <michal.klocek@qt.io>
Diffstat (limited to 'tests/auto/quick/qmltests')
0 files changed, 0 insertions, 0 deletions