mapbox / mapbox/mapbox-gl-draw
Can't return to original coords after dragging
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.1k
- Forks
- 612
- Avg merge
- 8d 9h
- Merged PRs (30d)
- 5
Description
**mapbox-gl-js version**: 2.3.1
**mapbox-gl-draw version**: 1.2.2
### Steps to Trigger Behavior
Start dragging a polygon and attempt to return it to the original coordinates
https://www.loom.com/share/9ac3e72134074d049211a3027276d223
### Expected Behavior
I should be able to drag the polygon back to the original position
### Actual Behavior
There is a "deadzone" where I cannot place the polygin
It may affect other drags (point, line etc.)
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 polygon drag behavior with mapbox-gl-js 2.3.1 and mapbox-gl-draw 1.2.2, using the linked Loom recording as a reference. Trace the drag handling from the reproduction and verify that returning a polygon to its original position no longer has a deadzone; check whether the same behavior affects points or lines.
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
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100