MAP_ACTION Drag

MAP_ACTION Drag enables direct drag gestures on map or canvas-based surfaces where traditional UI-element detection does not apply. Unlike Scroll or Swipe which operate on scrollable containers—MAP_ACTION Drag interacts purely with the visual surface, allowing Drizz to simulate user-driven map navigation, marker repositioning, or directional panning with high precision. This command is essential for map-heavy applications where pins, zones, and overlays must be moved or explored without relying on structured UI trees.

Executes a drag gesture on the map or canvas surface based on explicit start and end directions. Effective for panning, repositioning markers, or moving on non-element surfaces.

When to use:

  1. Panning the map to explore surrounding areas

  2. Repositioning a marker on map surfaces

  3. Simulating directional movement where Scroll/Swipe fails

Syntax Requirements:

  1. Always provide start direction and end direction

  2. Clarify intent (purpose of drag)

Examples:

  1. MAP_ACTION Drag map pointer from left to right

  2. MAP_ACTION Drag from bottom to top

  3. MAP_ACTION Drag from right to left to reposition marker

  4. MAP_ACTION Drag from top to bottom to view surrounding region

Last updated

Was this helpful?