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: do not cancel touch events if they are non-cancelable #2190

Merged
merged 5 commits into from
May 21, 2020

Conversation

renchap
Copy link
Contributor

@renchap renchap commented Apr 4, 2020

This prevents errors like this in Chrome mobile:

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

I am getting quite a few reports for these errors from end-users (using ReportingObserver). As calling preventDefault() is a no-op on a non-cancelable event, this change should not have any impact except removing those warnings.

This prevents errors like this in Chrome mobile:
```
IgnoredEventCancel: Ignored attempt to cancel a touchmove event with cancelable=false, for example because scrolling is in progress and cannot be interrupted.
```
@codecov
Copy link

codecov bot commented Apr 4, 2020

Codecov Report

Merging #2190 into master will not change coverage.
The diff coverage is 0.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2190   +/-   ##
=======================================
  Coverage   49.70%   49.70%           
=======================================
  Files          87       87           
  Lines        2505     2505           
  Branches      467      469    +2     
=======================================
  Hits         1245     1245           
  Misses       1260     1260           
Impacted Files Coverage Δ
packages/core/touch-backend/src/TouchBackend.ts 0.00% <0.00%> (ø)

Copy link
Member

@darthtrevino darthtrevino left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@darthtrevino darthtrevino merged commit 1b4019e into react-dnd:master May 21, 2020
darthtrevino added a commit that referenced this pull request Feb 3, 2022
* fix: do not cancel touch events if they are non-cancelable

This prevents errors like this in Chrome mobile:
```
IgnoredEventCancel: Ignored attempt to cancel a touchmove event with cancelable=false, for example because scrolling is in progress and cannot be interrupted.
```

* build: update auto-merge to check actor

* build: add node 14 to build matrix

* build: add codecov.yml to tune codecov settings

turn off patch coverage checks

Co-authored-by: Chris Trevino <chtrevin@microsoft.com>
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.

2 participants