Skip to content
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

Fixed that we forget to observe onTouchCancelled event. #2351

Merged
merged 1 commit into from Feb 24, 2018

Conversation

dumganhar
Copy link
Contributor

@dumganhar dumganhar commented Feb 24, 2018

修复引擎没有处理系统派发的 touch cancel 事件的问题。
Reported at http://forum.cocos.com/t/touch-bug/56674

@@ -204,6 +204,23 @@ var _touchEndHandler = function (touch, event) {
Event.EventTouch.pool.put(event);
}
};
var _touchCancelHandler = function (touch, event) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

把前面 end handler 里面的 hitTest 给去掉把,也不需要 touch cancel 的处理了

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

end handler 需要 hittest吧,为什么要去掉?
cancel 才不需要吧?

@pandamicro pandamicro merged commit c30a431 into cocos:v1.8-release Feb 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants