Skip to main content

mobium press-drag

This tool on every surface: CLI · MCP · Python · JavaScript · Go · Java · .NET

Hold one thing with a finger and drag a second finger elsewhere

One finger presses and stays down; a second lands on , moves to and lifts; then the first lifts. Not drag, which is one finger carrying something: here one finger anchors and the other moves. All three targets are resolved before anything is touched.

What comes back is that the gesture was delivered — run map again to see what it did. Android 15 and earlier only, for press-tap's reasons.

Usage​

mobium press-drag <hold> <from> <to> | press-drag <x1> <y1> <x2> <y2> <x3> <y3> [flags]

Flags​

FlagTypeDefaultWhat it does
--duration-msint600how long the second finger's travel takes, in milliseconds
--lead-msint300how long the first finger rests before the second lands, in milliseconds

And the global flags.

Examples​

Hold one thing and drag another​

mobium press-drag @e3 @e5 @e9

More, from mobium press-drag --help​

mobium press-drag @e3 @e5 @e9
mobium press-drag 300 1200 700 1000 700 400

On a device​

mobium press-drag &#39;label=Hold zone&#39; &#39;label=Act zone&#39; &#39;label=Drag end&#39; on an Android 15 emulator

mobium press-drag 'label=Hold zone' 'label=Act zone' 'label=Drag end' on an Android 15 emulator

The tool​

press-drag calls app_press_drag; its arguments and what every client calls it are there.