phaser-ce icon indicating copy to clipboard operation
phaser-ce copied to clipboard

Image hover not working for first time if image was clicked

Open vatsalchhaiya opened this issue 3 years ago • 1 comments

i am facing image hover issue in mobile devices. i added pixelPerfectOver and pixelPerfectClick because i need over and click event both for png images

image.input.priorityID = 2;
image.input.pixelPerfectOver = true;
image.input.pixelPerfectClick = true;
image.events.onInputOver.add(onOver, this); 
image.events.onInputOut.add(onOverOut, this);

this works fine in browser but in mobile view or devices there is issue when you click on image then first time you hover the image over function will not call but if you hover out and then again hover the image over function will called. why am i not able to call function for first time? can anyone help me with this issue? thank you.

vatsalchhaiya avatar May 27 '22 09:05 vatsalchhaiya

Can you add the debug rendering calls like in https://samme.github.io/phaser-examples-mirror/debug/debug%20input.html?

samme avatar May 27 '22 15:05 samme