To let the mouse button release on another region, you can replace the call to MouseDragAndDropOn
with a version adjusted to your need.
The function MouseDragAndDropOn
is just a shortcut to compile a MotionParam
, you don’t need it to model a drag and drop operation.
So let’s look at the definition of MouseDragAndDropOn
:
I found it at
That code creates a list of two MotionParamMouseRegion
, to model the path for the mouse.
To replace the destination region, create your own MotionParamMouseRegion
(Sanderling/src/Sanderling/Sanderling/Motor/Motion.cs at 3e04af29eeacd1bd32ab69cb11adca8ef911c204 · Arcitectus/Sanderling · GitHub) and set its property RegionReplacement
to specify the region to move the mouse to.