Skip to content

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

@agdolla

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()
  }
}

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