mariusandra / pigeon-maps

ReactJS Maps without external dependencies
https://pigeon-maps.js.org/
MIT License
3.44k stars 142 forks source link

Draggable onDragMove is returning wrong coordinates. #137

Closed hurelhuyag closed 3 years ago

hurelhuyag commented 3 years ago

I'm trying to implement a polygon editor in pigeon-maps. I assuming onDragMove is reporting wrong coordinates. If I'm wrong. Can you show me the correct example?

Here is my example: https://codesandbox.io/s/pigeon-maps-dragmove-1riru?file=/src/App.js

In this example, polygon edges have a draggable circle. When the draggable circle moves around, Polygon should resize accordingly.

mariusandra commented 3 years ago

Hey, this was indeed broken. It will if you upgrade to pigeon-maps 0.19.7 :)

hurelhuyag commented 3 years ago

Thank you. Now it is working as expected.