Tom Atom Posted March 9, 2015 Share Posted March 9, 2015 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 More sharing options...
Tom Atom Posted March 10, 2015 Author Share Posted March 10, 2015 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. in mono 1 Link to comment Share on other sites More sharing options...
stupot Posted March 10, 2015 Share Posted March 10, 2015 was just about to try this for you... IE on mobile is a pain, denim is quite naughty... thanks for posting the fix, it'll help others nice little game that. Link to comment Share on other sites More sharing options...
Tom Atom Posted March 10, 2015 Author Share Posted March 10, 2015 Thanks Maybe it will find its way into Full Screen Mobile template... Link to comment Share on other sites More sharing options...
Recommended Posts