olorin Posted August 19, 2015 Share Posted August 19, 2015 Hi, It seems that game input events run twice (one click => 2 runs) on iOS. It’s normal? It can create performance issues. game.input.onUp.add(function(){ console.log("click"); //display "click" 2 times for one real click on iOS }, this); Set game.input.maxPointers = 1; doesn't change anything. On desktop it works correctly. Olorin Link to comment Share on other sites More sharing options...
rich Posted August 19, 2015 Share Posted August 19, 2015 Are you testing on an actual device, or under emulation? (it makes a difference) Link to comment Share on other sites More sharing options...
olorin Posted August 19, 2015 Author Share Posted August 19, 2015 I am testing witha new iPad (iOS 8.3)an old iPad mini 1st generation (iOS 8.2)Google Chrome (emulation iPad) - windows 8 There are the same result for all Link to comment Share on other sites More sharing options...
olorin Posted August 19, 2015 Author Share Posted August 19, 2015 I found the origin of this issue. I used a touchHandler function to make work my UI (dialogs) on desktop and mobile. These create a double run in mobile… document.addEventListener("touchstart", touchHandler, true); Sorry for the inconvenience. Link to comment Share on other sites More sharing options...
Recommended Posts