Skip to content

Fixed problem with preventing touch event#17

Open
berezinant wants to merge 1 commit intorexxars:masterfrom
berezinant:master
Open

Fixed problem with preventing touch event#17
berezinant wants to merge 1 commit intorexxars:masterfrom
berezinant:master

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.

1 participant