Skip to content

Latest commit

 

History

History
27 lines (22 loc) · 703 Bytes

recognizer-rotate.md

File metadata and controls

27 lines (22 loc) · 703 Bytes
layout title
default
Rotate recognizer

Hammer.Rotate(options)

Recognized when two or more pointer are moving in a circular motion.

Option Default Description
event rotate Name of the event.
pointers 2 Required pointers, with a minimal of 2.
threshold 0 Minimal rotation before recognizing.

Events

  • rotate, together with all of below
  • rotatestart
  • rotatemove
  • rotateend
  • rotatecancel

Notes

This recognizer is disabled by default because it would make the element blocking. You can enable it by calling:

hammertime.get('rotate').set({ enable: true });