Stop moving when reaching boundaries

I have created a prototype that you can move multiple items at once and they are in different sizes.
Is there a way to stop moving all objects in drag when one of them touches the boundaries that are defined in move function?

Sorry forgot to include file test.rp (80.9 KB)

So as you can see in file, there are two rectangles, when you drag selection around them and try to move them both, when one of the reaches the edge of canvas the other one still moves. I want to stop movement of both when one of them reaches the edge of canvas.


Move “Visuals” as a group.
MarqueeSelection.rp (78.6 KB)

1 Like

Thanks :slight_smile:

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.