You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to get a page to scale correctly for mobile devices, but including enchant.js seems to affect the width of the page so it renders incorrectly on iPhone
We're sorry, enchant.js designed to be used in single page without other elements outside canvas, because it will override global property of the entire page. I recommend embed enchant.js app with an <iframe> tag.
I am trying to get a page to scale correctly for mobile devices, but including enchant.js seems to affect the width of the page so it renders incorrectly on iPhone
Example (open on iPhone)
^ This page has no enchant.js included and everything fits nicely inside the view
^ This is the exact same page with the only change being enchant.js is included. The page is forced too wide and you only see half the view.
This is caused by the RETINA_DISPLAY method in enchant.js setting the viewport width to 640 - commenting this out fixes the issue
The text was updated successfully, but these errors were encountered: