-
Notifications
You must be signed in to change notification settings - Fork 33
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
Mouse coordinates are wrong when requestFullScreen called #50
Comments
For future reference: I fixed this problem by calling Step-by-step
A downside of this is that the canvas wont scale, thus your game wont know that the window changed size. It'll just remain the aspect ratio it was at boot. See this answer for a solution that doesn't have that problem: #88 (comment) (in combination with full-screen mode: |
Webでfullscreenにしたときにcoordinateが狂う問題への対処
|
The canvas coordinates in requestFullScreen are the same as the canvas before full screen mode, although they need to be adjusted.
Found a similar problem here https://stackoverflow.com/questions/43853119/javascript-wrong-mouse-position-when-drawing-on-canvas/43873988
The text was updated successfully, but these errors were encountered: