Skip to content

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