browser_drag
Drag from an element or coordinate to a target element or coordinate to move sliders, pan canvases, adjust split bars, or reorder lists; ensure both endpoints are on screen before starting.
Instructions
Press on something, carry it somewhere, let go. The one gesture a click cannot make, so this is for sliders, panning a canvas, split bars and lists that reorder. Give the destination exactly one way: toEmsn (with toX and toY for a spot inside it), or toX and toY, or dx and dy. Both ends must already be on screen — the far end is not scrolled into view, so scroll first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | With an emsn, a spot inside it; on its own, the point to press. | |
| y | No | See x. | |
| dx | No | Release this far from the press, horizontally. | |
| dy | No | See dx. | |
| toX | No | Point to release at; needs toY. | |
| toY | No | See toX. | |
| emsn | No | Element to press on. | |
| tabId | No | Tab to act on. Defaults to the foreground tab of that window. | |
| button | No | Default left. | |
| holdMs | No | How long to hold before moving. Raise it for a list that needs a long press. | |
| toEmsn | No | Element to release over. | |
| settleMs | No | How long to rest at the far end before releasing. | |
| windowId | No | Window to act on. Defaults to the frontmost window. | |
| snapshotId | Yes | The snapshotId from the browser_take_snapshot you picked the emsn out of. An element keeps its emsn while the page stays (no navigation or reload), so with an emsn any snapshot of the current page is accepted; with x,y only the latest one is. A number whose element has gone is refused rather than clicked. |