You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So, on touchstartevent event.touches.length equal to 1 but when your remove finger and on touchend event it equal to 0. It means that we map it to different buttons in trackingData.clicksByButton which cause the issue. Regarding to the spec (https://w3c.github.io/pointerevents/#the-button-property) we should always use 0 for button and 1 for buttons.
Tap event never fires on mobile or even in Chrome device simulator.
The root cause of this issue is in
normalizeToPointerData
functionpixijs/packages/events/src/EventSystem.ts
Lines 499 to 500 in f215d87
So, on
touchstart
event event.touches.length
equal to1
but when your remove finger and ontouchend
event it equal to0
. It means that we map it to different buttons intrackingData.clicksByButton
which cause the issue. Regarding to the spec (https://w3c.github.io/pointerevents/#the-button-property) we should always use0
forbutton
and1
forbuttons
.Expected Behavior
tap event fires
Current Behavior
tap event never fires
Possible Solution
The solution would be easy like
Steps to Reproduce
Before visiting pixiplayground make sure that the mobile emulator is enabled (important)
https://www.pixiplayground.com/#/edit/M7QmJOCtsKqeUo1JJq-T5
Environment
Doesn't matter in this case
The text was updated successfully, but these errors were encountered: