Skip to content

Latest commit

 

History

History
28 lines (24 loc) · 746 Bytes

recognizer-pinch.md

File metadata and controls

28 lines (24 loc) · 746 Bytes
layout title
default
Pinch recognizer

Hammer.Pinch(options)

Recognized when two or more pointers are moving toward (zoom-in) or away from each other (zoom-out).

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

Events

  • pinch, together with all of below
  • pinchstart
  • pinchmove
  • pinchend
  • pinchcancel
  • pinchin
  • pinchout

Notes

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

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