-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
useLongPress的moveThreshold支持对onclick生效 #2166
Comments
原本的onclick事件本身不会在屏幕滑动时触发,应该是因为useLongPress使用mouseleave/touchend模拟click导致触发了事件 |
和这个问题差不多:#2133 |
是有一点像?但我那边其实不用速度很快也能复现,而且触发的是longpress,只是可能手指不能上下滑动。这边debug的情况就是在slide的时候横向滑动被native拦截了,马上触发了touchcancel,webview与手指的相对位置并没有变化,所以浏览器没有认为是move,touchmove没有触发,在响应的上下文去debug event的position实际上也没有变化,所以那个pr就处理了下touchcancel的case |
之前我好像确实理解错了,我再排查下这个问题 |
现在情况如何了 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
移动端上下滑动页面时,松手后会触发onclick
moveThreshold似乎只对longPress生效,是否可以添加对onclick的支持或解决方案
The text was updated successfully, but these errors were encountered: