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

[dragelement] Make touchmove event listener non passive #4231

Merged
merged 1 commit into from
Sep 30, 2019

Conversation

dan8f
Copy link
Contributor

@dan8f dan8f commented Sep 27, 2019

Fixes #3371.

Touch event listeners are passive by default in some browsers and calling preventDefault inside passive event listeners is not allowed.

This is the only case I've come across but there might be more cases in the code base.

Touchmove event listeners default to true in Chrome. Calling preventDefault inside passive event listeners is not allowed.
@etpinard etpinard added status: reviewable bug something broken labels Sep 30, 2019
@etpinard etpinard added this to the v1.50.0 milestone Sep 30, 2019
@etpinard
Copy link
Contributor

This looks good. I didn't notice any regressions while testing on mobile Chrome and FF

Thanks for the PR!!


I'll go ahead on merge this thing even though test-image fails. This problem has been fixed in master and won't be an issue going forward.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Passive event listener error on mobile on drag
2 participants