-
Notifications
You must be signed in to change notification settings - Fork 11
Browser Quirks Solution
Tapsi edited this page Oct 20, 2014
·
4 revisions
Environment | Error | Solution |
---|---|---|
InternetExplorer 9 and up | Canvas is not available | Add <!DOCTYPE html> to the head of your HTML document. Important: (!) You have to write it exact like above with the correct letter case else the Internet Explorer will ignore it and prevents using HTML5 stuff. |
InternetExplorer | syntax error for keyword const | The Internet Explorer cannot understand the const keyword of javascript. You should use var with capital letters as workaround. |
Firefox | Mouse input has NaN x and y coordinates |
Webkit and Mozilla using different mouse event properties. In WebKit environments you can use ev.offsetX or ev.offsetY to grab the position, but in Mozilla environments you have to use ev.layerX and ev.layerY . |
iOS 7 Safari | The game does not start on an iOS device because there is a bug in the WebKit version of iOS7 which leads into a security error when a game allocate all possible WebSQL at once. This is what the Custom Wars: Tactics game tries to do (Article about that problem). | You can place the Custom Wars: Tactics application on the home screen to prevent that bug. On the other side this means that the game does not have Just-in-Time compilation support. This may affects the overall game performance. Furthermore some users reports of freezing devices during use of home screen web apps (we could not reproduce that). Anyway use the home screen web app feature on iOS 7 with caution. |
- Resources
- Tools
- Development
- Design Documents
- Archive