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
jsb-adapter/engine/jsb-safearea.js
Line 23 in cf6b3db
在原生平台上,this.updateArea() 里面会持有 this.node ,但是这里的监听中,却是延迟了 200 ms 才调用 this.updateArea
this.updateArea()
这样子,如果应用旋转屏幕后,立即切换场景之类,那么 safearea 里面引用的 this.node 就会被销毁并变成 null,在 200ms 之后调用了 updateArea ,此时就会导致一直闪屏/黑屏等问题
问题根源在于为什么需要 setTimeout 200 ms 呢?
The text was updated successfully, but these errors were encountered:
我们这边是在后台回来前台后,检查离开时长,如果离开很久的话,需要用户重连游戏,在这个操作过程中 我们是会让用户切换到登录场景,然后就会触发了这个诡异的闪屏
Sorry, something went wrong.
this.node 这里确实需要做一下判空处理
No branches or pull requests
jsb-adapter/engine/jsb-safearea.js
Line 23 in cf6b3db
在原生平台上,
this.updateArea()
里面会持有 this.node ,但是这里的监听中,却是延迟了 200 ms 才调用 this.updateArea这样子,如果应用旋转屏幕后,立即切换场景之类,那么 safearea 里面引用的 this.node 就会被销毁并变成 null,在 200ms 之后调用了 updateArea ,此时就会导致一直闪屏/黑屏等问题
问题根源在于为什么需要 setTimeout 200 ms 呢?
The text was updated successfully, but these errors were encountered: