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

@PatriceJiang
Copy link
Contributor

@PatriceJiang PatriceJiang commented Apr 10, 2019

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

@PatriceJiang
Copy link
Contributor Author

@PatriceJiang PatriceJiang commented Apr 10, 2019

@minggo please review if you are available.

@minggo
Copy link
Contributor

@minggo minggo 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
@PatriceJiang PatriceJiang deleted the fix_dspatch_order branch Oct 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants