Stop moving when reaching boundaries

Hi,
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.

Thanks

Move “Visuals” as a group.

https://sovxpt.axshare.com/#id=pcjpn5&p=page_1
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.