Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Since the click event does not occur after the touchmove event, set ignoreNextClick to false during touchmove. #2365

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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.

None yet

1 participant