简体   繁体   English

反正有使用PanResponder处理多点触控事件吗

[英]Is there anyway using PanResponder handle multi-touch event

I try to use two PanResponder to handle multi-touch event. 我尝试使用两个PanResponder处理多点触摸事件。 One PanResponder in charge of upper half screen, and one lower. 一名PanResponder负责上半个屏幕,另一个负责下半个屏幕。 The two PanResponders work fine as long as there only one finger touch the screen. 只要只有一根手指触摸屏幕,两个PanResponder就能正常工作。 But when I put two finger on the screen, only one PanResponder works. 但是,当我将两根手指放在屏幕上时,只有一个PanResponder起作用。 So I only know coordinate( movement) of one finger and have no idea what status of the other finger is. 所以我只知道一个手指的坐标(运动),却不知道另一只手指的状态。

I can confirm I have this behavior and was unable to get an array of 2 touches with PanResponder. 我可以确认我有此行为,并且无法通过PanResponder获得2次触摸的数组。

It seems other people reported the problem in the past: https://react-native.canny.io/feature-requests/p/panresponderonpanrespondermove-not-responding-for-pinch 似乎其他人过去也曾报告过该问题: https : //react-native.canny.io/feature-requests/p/panresponderonpanrespondermove-not-responding-for-pinch

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM