-
Notifications
You must be signed in to change notification settings - Fork 541
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
touchend时,是不是应该用changedTouches访问当前触摸点对象 #104
Comments
narol1024
changed the title
touchend时,是不是应该用changeTouches访问当前触摸点对象
touchend时,是不是应该用changedTouches访问当前触摸点对象
Mar 18, 2018
touches 可以访问到还遗留在屏幕上的 触点啊~~ |
假设是多触摸点的话,同时松开,那么touches在touchend应该为空了,changedTouches则不会 |
现在比较尴尬的事,单点触摸也会触发 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: