In #58, we disabled polygon dragging in favour of changing the polygon select behaviour to only fire when clicking on or near a line, rather than anywhere inside its area.
If we want to make them draggable again, we should reinstate the Draggable function with a custom onStart prop that checks for distance from a polygon's edge, and allows it to be dragged if within select range.
Things to be careful of
We shouldn't accidentally select multiple polygons
Drawing shouldn't accidentally fire a select event (currently, if you try and create a point within the select radius of another polygon, the cursor changes but doesn't actually do anything)
In #58, we disabled polygon dragging in favour of changing the polygon select behaviour to only fire when clicking on or near a line, rather than anywhere inside its area.
If we want to make them draggable again, we should reinstate the
Draggable
function with a customonStart
prop that checks for distance from a polygon's edge, and allows it to be dragged if within select range.Things to be careful of