1715labs / 1715labs-pfe

Modified version of PFE for use with paid crowds
1715labs-pfe.vercel.app
Apache License 2.0
0 stars 0 forks source link

Allow polygons to be both draggable and selectable only by line #65

Open rogerhutchings opened 2 years ago

rogerhutchings commented 2 years ago

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