NokFrt Posted February 24, 2014 Share Posted February 24, 2014 My game runs very well on WP, but I have two problems: 1. when I tap the screen, I can see a small gray circle on a place where I tapped.2. when I slide down or up, the whole canvas is move up or down. Does anybody know how to disable the gray circle and how to fix the browser's viewport? I use the following CSS in my index.html* {user-select: none;-webkit-tap-highlight-color: rgba(0, 0, 0, 0);-webkit-touch-callout: none;-webkit-user-select: none;-moz-user-select: none;-ms-user-select: none;}and my canvas is:<canvas id="canvas" width="540" height="540" style="position: absolute;"></canvas> Quote Link to comment Share on other sites More sharing options...
enpu Posted February 24, 2014 Share Posted February 24, 2014 Try this:html { -ms-touch-action: none; /* Direct all pointer events to JavaScript code. */} 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.