Two or more resizing tools in a single diagram


I am having a diagram which has both Horizontal and Vertical swimlanes in it.
Both have their own separate resizing tools. How can i implement the toggle between those two resizing tools based on the part resized.

The easiest way is probably, instead of having two full tools, have one tool that contains the logic for both, and conditionally choose which logic to apply on tool start once the object-to-be-resized is determined.