提高触摸事件支持

作者: matteobruni创建于 2023年5月4日更新于 2025年2月18日
标签documentationenhancementhelp wantedgood first issueup-for-grabspluginfeature_requestpinned

The touch events code is far from perfect, it doesn't support multitouch and the tap detection is a mess. This could be a way to fix multiple issues (#4839 and #4951) in a single change. Every touch has an identifier and it must be used to track it to see if it's a tap, long tap or a movement. I think the tap can be under 300ms, otherwise it's a long tap that behaves like a movement. The multitouch support could be difficult, but it can be at least prepared for future implementations

内容来源: tsparticles/tsparticles