JeZxLee Posted July 17, 2017 Share Posted July 17, 2017 Hi, Canvas resize on browser resize is 100% now. How can I center the resized canvas horizontally in the browser window? Also would that effect mouse/touch coordinates? Thanks! JeZxLee Quote Link to comment Share on other sites More sharing options...
Taz Posted July 17, 2017 Share Posted July 17, 2017 kittykatattack's scaleToWindow function shows how to center canvas vertically or horizontally in the window for reference xwz86 1 Quote Link to comment Share on other sites More sharing options...
JeZxLee Posted July 17, 2017 Author Share Posted July 17, 2017 Hi, I actually figured it out now. Demo is HERE. Source code is HERE. Thanks! JeZxLee Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.