Type Alias GestureIntent

GestureIntent: "scroll" | "zoom" | "drag" | "unknown"

Indicates the likely intent of the gesture, or the likely result of the action if it is not prevented. Note that this cannot be 100% reliable as it depends on the browser and the target element.

  • "scroll": Would likely result in a scroll or a pan (for touch events involving multiple fingers). Results from mouse or trackpad wheel events, from touch moves involving any number of fingers, or from directional key presses (Arrows, Home, etc), unless those actions are deemed to be zoom actions (see below).
  • "zoom": Would likely result in a zoom. Results from mouse wheel while holding Ctrl key, from trackpad or touch screen pinch motion or from pressing +/- on keyboard.
  • "drag": Would likely result in a drag. Results from pressing the primary mouse button then moving.