Drag
dragDrag from one element or screen coordinate to another to move items, adjust sliders, or select ranges. Use element IDs or coordinates for each end, then verify the result with get_app_state.
Instructions
Press at one point, move, and release at another to drag and drop, move a slider, or select a range. Give each end as an element id or as screen coordinates; the two ends may use different forms. A drop can move or reorder items in the app, so verify the result with get_app_state. On macOS a drag must stay inside one app window and never moves the user's pointer; on Windows and Linux most drags use real mouse input, which moves the user's pointer (the result then says via cursor).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to_x | No | Screen x to release at, used with to_y when no to_element_id is given | |
| to_y | No | Screen y to release at, used with to_x when no to_element_id is given | |
| from_x | No | Screen x to start at, used with from_y when no from_element_id is given | |
| from_y | No | Screen y to start at, used with from_x when no from_element_id is given | |
| to_element_id | No | Element to release on, from get_app_state | |
| from_element_id | No | Element to start the drag on, from get_app_state |