mapbox / mapbox/mapbox-gl-draw
pointer style not not reset while drawing is not finished and deleteAll() is called
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**: 1.13.1
**mapbox-gl-draw version**: 1.3
### Steps to Trigger Behavior
1. start drawing a line
2. click on a button that calls draw.deleteAll())
### Expected Behavior
cursor reset to its previous style
### Actual Behavior
it stays as a crosshair.
it works if the draw is finished ( double click on the last point of the line to finish the drawing)
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 issue in mapbox-gl-draw 1.3 by starting a line and calling draw.deleteAll() before finishing it. Trace the deleteAll() and drawing-mode cursor handling, then verify that deleting an unfinished line restores the previous cursor style as it already does after a finished drawing.
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
- Clearly specified
- Newbie friendliness
- 45/100