mapbox / mapbox/mapbox-gl-draw

Chrome - Touchend event after dragging shape shows warning

Open
#1,601 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

auto-triaged bug
Dominant language
JavaScript
Stars
1.1k
Forks
612
Avg merge
8d 9h
Merged PRs (30d)
5

Description

mapbox-gl-js version: 2.9.2
mapbox-gl-draw version: 1.5.1

Steps to Trigger Behavior

  1. Draw any shape using the draw tools in the Chrome browser
  2. Enter touch mode if not already in (e.g. from dev tools)
  3. Drag the shape and release
  4. A warning message is shown:
    Warning: [Intervention] Ignored attempt to cancel a touchend event with cancelable=false, for example because scrolling is in progress and cannot be interrupted.

Expected Behavior

No warning should be shown after dragging a shape in touch mode

Actual Behavior

A warning is shown

Screenshot

Image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the warning in Chrome by using the draw tools in touch mode, then inspect the touch interaction handling involved in dragging and releasing a shape. Confirm the fix by repeating the steps and verifying that no cancelable=false touchend warning appears.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
64/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.