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

ignore touch event if native init is not finished #1715

Merged
merged 4 commits into from Apr 10, 2019

Conversation

Projects
None yet
3 participants
@PatriceJiang
Copy link
Contributor

commented Apr 10, 2019

确保touch事件在Application初始化完成之后执行.
在初始化前, 忽略touch事件

PatriceJiang added some commits Apr 10, 2019

@PatriceJiang

This comment has been minimized.

Copy link
Contributor Author

commented Apr 10, 2019

@minggo please review if you are available.

@minggo

This comment has been minimized.

Copy link
Contributor

commented Apr 10, 2019

在 renderer 事件处理函数里使用 mNativeInitCompleted 判断就可以了,就如 handleOnPause() 的逻辑。

@PatriceJiang PatriceJiang changed the title schedule touch event after navtive init complete ignore touch event if navtive init is not finished Apr 10, 2019

@minggo

minggo approved these changes Apr 10, 2019

@PatriceJiang PatriceJiang changed the title ignore touch event if navtive init is not finished ignore touch event if native init is not finished Apr 10, 2019

@jareguo jareguo merged commit 4823c84 into cocos-creator:v2.1-release Apr 10, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.