Skip to content

Latest commit

 

History

History
23 lines (19 loc) · 679 Bytes

recognizer-swipe.md

File metadata and controls

23 lines (19 loc) · 679 Bytes
layout title
default
Swipe recognizer

Hammer.Swipe(options)

Recognized when the pointer is moving fast (velocity), with enough distance in the allowed direction.

Option Default Description
event swipe Name of the event.
pointers 1 Required pointers.
threshold 10 Minimal distance required before recognizing.
direction DIRECTION_ALL Direction of the panning.
velocity 0.65 Minimal velocity required before recognizing, unit is in px per ms.

Events

  • swipe, together with all of below
  • swipeleft
  • swiperight
  • swipeup
  • swipedown