We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
AlloyFinger/react/AlloyFinger.jsx
Line 167 in 9d0db8e
貌似touchend触发后,只有event.changedTouches才能访问到触摸点对象,targetTouches和touches此时为空了。
touchend
event.changedTouches
targetTouches
touches
另外为什么判断length < 2时才触发onMultipointEnd,不解,或者说,怎么样判断是单点触发end还是多点触发end事件?
length < 2
onMultipointEnd
The text was updated successfully, but these errors were encountered:
touches 可以访问到还遗留在屏幕上的 触点啊~~
Sorry, something went wrong.
假设是多触摸点的话,同时松开,那么touches在touchend应该为空了,changedTouches则不会
现在比较尴尬的事,单点触摸也会触发multipointEnd事件,同这个issue
multipointEnd
No branches or pull requests
AlloyFinger/react/AlloyFinger.jsx
Line 167 in 9d0db8e
貌似
touchend
触发后,只有event.changedTouches
才能访问到触摸点对象,targetTouches
和touches
此时为空了。另外为什么判断
length < 2
时才触发onMultipointEnd
,不解,或者说,怎么样判断是单点触发end还是多点触发end事件?The text was updated successfully, but these errors were encountered: