Jump to content
This forum will be closing down. Please move to the respective dedicated project forums.

Game.input.onUp (and others) run twice on iOS


olorin
 Share

Recommended Posts

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

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

 Share

  • Recently Browsing   0 members

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