Skip to content

Conversation

KaiShoya
Copy link

@KaiShoya KaiShoya commented Apr 16, 2024

See #2352 #2319.

The following behavior can be reproduced in chrome's smartphone display mode and on the actual device.

When dragging and dropping with the mouse, the click event is executed after the drop. (mousemove)
However, on a smartphone, the click event is not executed after a drop. (touchmove)
Therefore, when fallback is executed on a smartphone, the behavior of pressing a button after a drop is disabled.

To solve this problem, set the ignoreNextClick flag to false for the touchmove event so that the click event is not disabled.

Demo:
https://codepen.io/armdbmfg-the-scripter/pen/NWmLJeL

EventListenerExecutedTimingCheck.mov

…set ignoreNextClick to false during touchmove.
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