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

Add/refine screen "resize" event #162

Open
benpaddlejones opened this issue May 21, 2015 · 1 comment
Open

Add/refine screen "resize" event #162

benpaddlejones opened this issue May 21, 2015 · 1 comment

Comments

@benpaddlejones
Copy link

Once canvas is drawn a resize event does not retrigger redrawing of the canvas. Thus if the screen is rotated often the canvas is scaled out of view.

Maybe this is a solution: http://www.williammalone.com/articles/html5-game-scaling/

@danielocdh
Copy link

I was unsure how to solve this, what worked for me is to have this inside the callback on a jquery window resize event:
Q.setup('canvas', {maximize: true});

Also you might need to manually adjust or override the width on the canvas container, because it is being set by quintus on the initial setup call, but not on resize setup calls.

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