mapbox / mapbox/mapbox-gl-draw

cannot drag back to its original coordinates

Open
#851 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

tested with https://www.mapbox.com/mapbox-gl-js/example/mapbox-gl-draw/ on Firefox

### Steps to Trigger Behavior

1. draw polygon
2. drag polygon a bit
3. drag polygon back to original position

### Expected Behavior
polygon should be moved to dragged position
### Actual Behavior
polygon jumped the original position and not able to stop the original coordinates.

![bc259031-f46e-4642-84e2-dbfa97de56f8](https://user-images.githubusercontent.com/7428017/50432480-58c85d00-0915-11e9-800e-c38fe79f0361.gif)

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 issue from the mapbox-gl-draw example on Firefox by drawing and dragging a polygon back to its starting coordinates. Trace the polygon-drag behavior from that example and verify that the polygon can be released at the dragged position instead of snapping back to its original coordinates.

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
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.