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 if event is cancelable before calling preventDefault #752

Merged
merged 1 commit into from
Mar 19, 2021

Conversation

leibowitz
Copy link
Contributor

@leibowitz leibowitz commented Oct 23, 2020

Fix #751

Avoid issues on mobile where an error is triggered when calling
preventDefault on an event that cannot be cancelled.

Fix these kind of error messages:

[Intervention] Ignored attempt to cancel a touchmove event with
cancelable=false, for example because scrolling is in progress and
cannot be interrupted.

https://developer.mozilla.org/en-US/docs/Web/API/Event/cancelable

Avoid issues on mobile where an error is triggered when calling
preventDefault on an event that cannot be cancelled.

Fix these kind of error messages:

[Intervention] Ignored attempt to cancel a touchmove event with
cancelable=false, for example because scrolling is in progress and
cannot be interrupted.
@codesandbox-ci
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit fa752bb:

Sandbox Source
react-sortable-hoc-starter Configuration

@leibowitz leibowitz changed the title fix: check event cancelable before preventDefault fix: check if event is cancelable before calling preventDefault Oct 23, 2020
@clauderic clauderic merged commit 6c72ec2 into clauderic:master Mar 19, 2021
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.

cancelling event on mobile triggering errors
2 participants