kaizoku Posted March 31, 2015 Share Posted March 31, 2015 I'm new to HTML5 game development and was wondering if there were any tips or best practice for avoiding browser UI/chrome issues. For example one mechanic in my game involves swiping up, sometimes on some devices this activates the browser chrome and scrolls the game/webpage up instead of swiping the in game object up. Another one might be a two finger swipe scrolls the browser instead of doing an ingame action. How can we reduce/avoid these types of issues? Thanks Quote Link to comment Share on other sites More sharing options...
AzraelTycka Posted April 1, 2015 Share Posted April 1, 2015 Hello, I might not understand correctly but doesn't event.preventDefault() prevent unwanted actions in these cases? You might need to add it to every listener action to be sure. Otherwise maybe just disabling window scrolling on your page could work (depends on how you page looks like though)? Well others might give better advice. 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.