drag
Simulate HTML5 or mouse drags from elements or coordinates to targets; auto-scrolls source and signals when no page reaction is detected.
Instructions
Drag a source onto a target: HTML5 drag-and-drop (draggable lists, SortableJS, React DnD) and mouse drags (sliders, canvas, resize handles). Scrolls the source into view; says when no page reaction was detected. Source: from_ref/from_selector or from_x+from_y; target: to_ref/to_selector or to_x+to_y.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to_x | No | Target viewport X in px (with to_y) | |
| to_y | No | Target viewport Y in px | |
| steps | No | Native mouseMoved events between press and release; minimum 5 | |
| from_x | No | Source viewport X in px (with from_y) | |
| from_y | No | Source viewport Y in px | |
| to_ref | No | Target element ref | |
| from_ref | No | Source element ref | |
| to_selector | No | Target CSS selector | |
| from_selector | No | Source CSS selector |