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

Some advise about WindowResize #46

Closed
RenderTool opened this issue Feb 12, 2020 · 1 comment
Closed

Some advise about WindowResize #46

RenderTool opened this issue Feb 12, 2020 · 1 comment

Comments

@RenderTool
Copy link

RenderTool commented Feb 12, 2020

Hello!thank you very much.
Now, I will give you some suggestions about screen adaptation on mobile app.
Wechat on the iPhone doesn't seem to support canvas very well. If you use window.innerheight and window.innerwidth control canvas size, the canvas height collapses when you rotate the phone screen. I changed to :
SCREEN_WIDTH = document.body.clientWidth;
SCREEN_HEIGHT = document.body.clientHeight;
will back to normal.
image
image

Threejs also has this problem.

@erichlof
Copy link
Owner

@q750831855
Hello again! Thank you for the suggestion! I have taken your advice: commit

I also put in a credit to you in the updated source file. :-)

Thanks again,
-Erich

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