Skip to content

Conversation

@jp30566347
Copy link

When long press callback has been invoked by the setTimeout function, the state does not change because it is assuming to be called in the onPointerUp callback, but this isn't guaranteed.

This fix just re-init the state within the onPointerDown event.

When long press callback has been invoked by the setTimeout function, the state does not change because it is assuming to be called in the onPointerUp callback, but this isn't guaranteed.

This fix just re-init the state within the onPointerDown event.
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

Successfully merging this pull request may close these issues.

1 participant