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

cocos并非全局未注入devicePixelRatio,而是真机上getSystemInfoSync没有返回devicePixelRatio #4

Open
yuniao777 opened this issue Jun 26, 2024 · 1 comment

Comments

@yuniao777
Copy link

并非是cocos未全局注入devicePixelRatio,而是在主包和开发者工具上都会返回devicePixelRatio,而是独立分包在真机上没有。
更严谨的写法是在getSystemInfoSync中加一个devicePixelRatio,而非添加一个全局的devicePixelRatio。

@zhangjunkunn
Copy link

感谢建议

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

No branches or pull requests

2 participants