Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image hover not working for first time if image was clicked #724

Open
vatsalchhaiya opened this issue May 27, 2022 · 1 comment
Open

Image hover not working for first time if image was clicked #724

vatsalchhaiya opened this issue May 27, 2022 · 1 comment

Comments

@vatsalchhaiya
Copy link

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.

@samme
Copy link
Collaborator

samme commented May 27, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants