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

Fixed problem with preventing touch event #17

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

Conversation

berezinant
Copy link

Hello!
Thank you for the react-element-pan component, it's really helpful and easy to use!

However I encountered the following warning while using in latest Chrome (version 67.0.3396.99).

[Intervention] Unable to preventDefault inside passive event listener due to target being treated as passive. See https://www.chromestatus.com/features/5093566007214080

Chromestatus says that since version 56 touch events are passive by default, so that calls to preventDefault for them are ignored.

So I decided to fix this small issue and explicitly marked the touchmove event as not passive.

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