edemaine / cocreate

Cocreate Shared Whiteboard/Drawing
MIT License
209 stars 27 forks source link

Drag refinement #93

Closed edemaine closed 3 years ago

edemaine commented 3 years ago

Consider two objects, A and B, that overlap. For example, A is a rectangle and B is a segment that is one edge of the rectangle.

It's relatively easy to select just one of these objects. If A is on top, just click. If B is on top, select all via rectangle, then shift click.

But then dragging doesn't work -- it depends on who is on top. When checking whether the selection is being dragged, we should check all the objects below the pointer for a match, instead of just the top one.