mapbox / mapbox/mapbox-gl-draw

Can't return to original coords after dragging

Open
#1,070 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.