Jump to content

Windows Phone swipe problem


Tom Atom
 Share

Recommended Posts

Hi, I have problem with swipes on Windows Phone. In our game characters are moved with swipes. It works well on all devices except Windows Phone. On Windows Phone whole canvas is moved when you try to make a swipe.

 

 I googled and added "-ms-touch-action: none;" to body style in css and also to div element that holds canvas in index.html (<div id="content" style="overflow: hidden; -ms-touch-action: none;"></div>). Unfortunately, I do not have WP available to test on. The person that encountered problem says, that problem is still there.

 

 I would like to ask: did you encountered this? And if yes, what was your solution?

Link to comment
Share on other sites

Ok, I found the solution. It has nothing to do with my code inside game. The root of evil is this line:

<meta http-equiv="X-UA-Compatible" content="chrome=1, IE=9">

 If you have this line in your html file and run game on Lumia (currently tested on Lumia 532) it will display small gray circle on every tap and if you swipe, it will do things like browsing to previous page...

 

 Change it to:

<meta http-equiv="X-UA-Compatible" content="chrome=1, IE=Edge">

... and your game will behave well - no graphical tap response, no gestures sent to browser.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...