Skip to content

[Intervention] Ignored attempt to cancel a touchmove event with cancelable=false' #308

Description

@agdolla

Hello

We're getting this [Intervention] Ignored attempt to cancel a touchmove event with cancelable=false' error on the console, which happens when a non-cancelable event is being cancelled with preventDefault()

This line looks suspicious:

Would that be ok if I sent an PR which would check for cancelability before preventDefault ? something like this:

const preventScrolling = e => {
  if (preventScrollingRef.current && e.cancelable) {
    e.preventDefault()
  }
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions