我有一个带有网格图像的scrollview,当我长按一个图像时,我想停止将鼠标事件传播到scrollview,只监视移动.目的是在压出时重新初始化传播.有人知道怎么做吗?
我有一个带有网格图像的scrollview,当我长按一个图像时,我想停止将鼠标事件传播到scrollview,只监视移动.目的是在压出时重新初始化传播.有人知道怎么做吗?
你应该看看手势应答器的方法:https://facebook.github.io/react-native/docs/gesture-responder-system.html#responder-lifecycle.实际上,更简单的方法是看一下PanResponder https://facebook.github.io/react-native/docs/panresponder.html——首先看一下UIExplorer示例,看看它的操作:https://github.com/facebook/react-native/blob/master/Examples/UIExplorer/ResponderExample.js.但我不确定这是否能处理你的长篇大论?