Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 644 Bytes

recognize-with.md

File metadata and controls

19 lines (15 loc) · 644 Bytes
layout title
default
RecognizeWith

Simultaneous recognizing

If you want to recognize two gestures simultaneously, you can use the the recognizeWith() method. The example below does this with the pinch and rotate recognizers, which will improve usability.

var pinch = new Hammer.Pinch();
var rotate = new Hammer.Rotate();
pinch.recognizeWith(rotate);

Now Hammer is able to run pinch and rotate the same time. You can also separate them with the dropRecognizeWith() method on the recognizer instance.

View an example implementation.