Multitouch drag and drop: dragging multiple elements at a time?

I’m trying to implement drag and drop for multitouch, where multiple components can be dragged at the same time.

For now I’m using the classic approach with my main component being a DragAndDropContainer and the draggable elements calling

if (!dragContainer->isDragAndDropActive())
            dragContainer->startDragging("childComponent", this, Image(), true);

but DragAndDropContainer seems to only be able to take care of one drag at a time…

What kind of aproach should I take to have multiple drags happening at once?

Found a solution by removing the condition:
seems DragAndDropContainer handles nicely multiple drags,
is this safe to do? was DragAndDropContainer meant for this?

To make your code more readable, please indent every line with 4 spaces, or surround the whole code with three backticks before and after, like this:

void your_code_here ()

The same is obtained by selecting the code in your post while editing, then pressing the button that has this symbol on it: </>

Super thank you, I was looking for a way to do this :wink: