mapbox / mapbox/mapbox-gl-draw
Chrome - Touchend event after dragging shape shows warning
Open
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
- Draw any shape using the draw tools in the Chrome browser
- Enter touch mode if not already in (e.g. from dev tools)
- Drag the shape and release
- 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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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