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

Checklist: fix duplicate trigger on Chrome Mobile #2032

Closed
wants to merge 1 commit into from

Conversation

dmarcelino
Copy link

Fixes #2031

Both mousedown and touchstart are being triggered on Chrome Mobile. We can prevent the mousedown event from triggering on touch devices by calling e.preventDefault() on the touchstart event. Citing MDN:

if an application does not want mouse events fired on a specific touch target element, the element's touch event handlers should call preventDefault() and no additional mouse events will be dispatched.

More details at #2031 and #759 (comment)

cc @patleeman

@dmarcelino
Copy link
Author

Hi @jhchen, I believe this is a straightforward fix for this issue. Let me know if you want me to change anything. Thanks.

@jhchen
Copy link
Member

jhchen commented Aug 9, 2019

This looks like it's been fixed in the develop branch

@jhchen jhchen closed this Aug 9, 2019
@bboy114crew
Copy link

This looks like it's been fixed in the develop branch

It hasn't fixed in the develop branch @jhchen . Can you fix this :D

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.

Checklist: unable to tick/untick check boxes on Chrome Mobile
4 participants