Currently any clicking interaction with an object that inherits our class DraggableContainer will perform dragging functionality. To be able to perform selection of objects at the point of click we'll need to not so eagerly go into "dragging" mode and first see if the mouseUp event occurs with no or minimal movement, in which case a click was triggered (possibly causing a selection) instead of a drag.
This will also need click off to de-select, keeping in mind that the whole background could be a scenery object that isSelectable = false, so I don't know if the event would go through to the stage behind to handle the event. Going to need to test and tweak this.
Extra notes:
Multi Select
Store selection in reducer not as a single item neccessarily, but an array of 1 or more to support multi select. Not sure how this would play with things expecting 1 e.g. properties popout, for now it could just ignore it if it's got more than 1 in and eventually it could do something cool like show common properties between all selected objects (if they have any common props)
Currently any clicking interaction with an object that inherits our class DraggableContainer will perform dragging functionality. To be able to perform selection of objects at the point of click we'll need to not so eagerly go into "dragging" mode and first see if the mouseUp event occurs with no or minimal movement, in which case a click was triggered (possibly causing a selection) instead of a drag.
This will also need click off to de-select, keeping in mind that the whole background could be a scenery object that isSelectable = false, so I don't know if the event would go through to the stage behind to handle the event. Going to need to test and tweak this.
Extra notes: