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: check for event.cancelable in touch events #634

Merged
merged 2 commits into from
Jul 18, 2022

Conversation

jschaf
Copy link
Contributor

@jschaf jschaf commented Jul 17, 2022

Chrome has started warning when canceling an event that cannot be cancelled, like scrolling.
This causes a fair bit of log spam. I know it fires for touchmove and touchend and there's
reports that it also fires for touchstart.

IgnoredEventCancel: intervention: Ignored attempt to cancel a touchmove event with
cancelable=false, for example because scrolling is in progress and cannot be interrupted

References:

Chrome has started warning when canceling an event that cannot be cancelled, like scrolling.
This causes a fair bit of log spam. I know it fires for touchmove and touchend and there's 
reports that it also fires for touchstart.

    IgnoredEventCancel: intervention: Ignored attempt to cancel a touchmove event with
    cancelable=false, for example because scrolling is in progress and cannot be interrupted

References:

- react-grid-layout/react-draggable#553
- https://www.uriports.com/blog/easy-fix-for-intervention-ignored-attempt-to-cancel-a-touchmove-event-with-cancelable-false/
- FL3NKEY/scroll-lock#19
- https://stackoverflow.com/a/53315365/30900
@UziTech
Copy link
Collaborator

UziTech commented Jul 17, 2022

Can you write a test to make sure this is not broken in future updates?

@UziTech UziTech merged commit 21ab3c7 into szimek:master Jul 18, 2022
github-actions bot pushed a commit that referenced this pull request Jul 18, 2022
## [4.0.6](v4.0.5...v4.0.6) (2022-07-18)

### Bug Fixes

* check for event.cancelable in touch events ([#634](#634)) ([21ab3c7](21ab3c7))
@github-actions
Copy link

🎉 This PR is included in version 4.0.6 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

2 participants