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-1650 #1971

Merged
merged 4 commits into from
Jan 25, 2021
Merged

fix-1650 #1971

merged 4 commits into from
Jan 25, 2021

Conversation

turelmert
Copy link

@turelmert turelmert commented Jan 24, 2021

Removed preventDefault methods which causing "Unable to preventDefault inside passive event listener invocation." error from handlers of passive events: onTouchMove, onTouchStart.

Related to https://github.com/facebook/react/pull/19654/files

See "https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#parameters => passive"

@turelmert
Copy link
Author

Noticed functional side effects after removing preventDefault methods in last commit. Implemented a new method to call preventDefault only if related event listener is not passive.

@turelmert
Copy link
Author

@akiran akiran merged commit 946cb7c into akiran:master Jan 25, 2021
@akiran
Copy link
Owner

akiran commented Jan 25, 2021

Thanks for the PR.

Released 0.28.0 with this fix

@monecchi
Copy link

Thanks guys! Upgrading to 0.28.0 fixed the issue!

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.

4 participants