-
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. This means the game does not have Just-in-Time compilation support, but seems to be able to run smooth on iPad4 and maybe iPad2 (which would support at least A5 devices). Some reports says that home screen applications may freeze your device. In this case you have to hard reboot your device by holding power and home for a longer period of time. Anyway this bug could not reproduced on iOS7.0. This issue will be fixed in future by us with a workaround to play in your normal browser window ( Mobile Safari ) or by directly Apple. Hopefully the last will be the case, because this workaround does not really solve the bug. |
- Resources
- Tools
- Development
- Design Documents
- Archive