Hello ! I’m making a interactive game object, there is my code:
key.setInteractive()
key.on('pointerout', OnNote_up)
key.on('pointerup', release)
key.on('pointerdown', press)
key.on('pointerover', hover)
In press() function, I make it record presstime, so it can detect player is double click or not.
It’s working well on PC, but on mobile, press() function was called twice, so I can’t record the right time, it always return a number very close 0… Q_Q
so I want to know – on(‘pointerdown’) – is alway call twice on mobile or not? If It is, is there any event can listen when I just want call once on pointerdown? (or another solution?)
thanks !!! >_<