Image hover not working for first time if image was clicked

Aperta
#724 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
javascript
Ambito
game-dev

Direzione di ricerca

Start by reading the Phaser input handling documentation and tracing how pixelPerfectOver and pixelPerfectClick interact on mobile after a click. Reproduce the sequence in the issue: click the image, move away, then hover it again, and compare when onInputOver fires. The issue does not name a file or test; done means the first hover after a click invokes the over handler on mobile.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
JavaScript
Stelle
1.4k
Fork
485
Merge medio
1g 2h
PR unite (30g)
9

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di phaserjs/phaser-ce

Tutte le issue di phaserjs/phaser-ce

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.