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:
Panning the map to explore surrounding areas
Repositioning a marker on map surfaces
Simulating directional movement where Scroll/Swipe fails
Syntax Requirements:
Always provide start direction and end direction
Clarify intent (purpose of drag)
Examples:
MAP_ACTION Drag map pointer from left to right
MAP_ACTION Drag from bottom to top
MAP_ACTION Drag from right to left to reposition marker
MAP_ACTION Drag from top to bottom to view surrounding region
Last updated
Was this helpful?