veil_drag
Drag UI elements that require real mouse events (not HTML5 drag). Specify source via ref or coordinates, and destination coordinates.
Instructions
Drag from one point to another — real mousedown -> mousemove(button held) -> mouseup, not the HTML5 drag events. Use this for 'drag a card onto a canvas' UIs (site/page builders, Kanban boards, sortable lists) whose drop targets don't respond to a plain click. Pass ref for the source if it has a snapshot ref, otherwise fromX/fromY; the destination is almost always a plain div with no ref, so give toX/toY read off a veil_screenshot.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | ||
| toX | Yes | ||
| toY | Yes | ||
| fromX | No | ||
| fromY | No |