请在 react native docs 上查看这个示例。 https://reactnative.dev/docs/panresponder
在设备上,如果您在框外开始触摸然后在框上拖动,则 PanResponder 不会触发(这是预期的行为)
但是在网络上,如果您在框外单击然后将鼠标拖动到框上,框将开始与光标一起拖动。
如果点击响应的元素开始,有没有办法只触发 PanResponder?
请在 react native docs 上查看这个示例。 https://reactnative.dev/docs/panresponder
在设备上,如果您在框外开始触摸然后在框上拖动,则 PanResponder 不会触发(这是预期的行为)
但是在网络上,如果您在框外单击然后将鼠标拖动到框上,框将开始与光标一起拖动。
如果点击响应的元素开始,有没有办法只触发 PanResponder?