Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: More than two touches at once disorder some 3rd-party packages #642

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

labbbirder
Copy link

问题描述

UIToolkit(可能包括其他第三方库)使用三指及以上触碰后,事件系统变得错乱。表现为:无法再响应滑动事件等。

基本信息
频率 必现
Platform WebGL (Minigame)
OS Android

问题分析

多指(>2)操作时,最后的eventType为touchcancel,并且changedTouches中未包含全部touch,导致C#层识别不到触碰点消失。

解决方案

此PR的方法是:cancel事件dispatch之前,先dispatch所有touch的touchend事件

@labbbirder labbbirder marked this pull request as draft January 2, 2024 05:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant