Skip to content

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