bemky / mapbox-gl-draw-freehand-mode

Mode for Mapbox GL Draw that simplifies UI to only free drawing
https://github.com/mapbox/mapbox-gl-draw
ISC License
70 stars 43 forks source link

fix: add onStop to re-enable mapPan on exit #15

Closed ericdong79 closed 2 years ago

ericdong79 commented 2 years ago

Added onStop lifecycle method(according to the doc) to re-enable panning of map when exit mode.

In onSetup lifecycle method it disabled mapPan, but did not enable it. This cause problems when user switch to other modes like the static as panning is no longer working.

bemky commented 2 years ago

Thanks for the PR @ericdong79. Good fix.