codef0rmer
codef0rmer

Reputation: 10530

How to find pinch in or pinch out using Gestures events in IOS safari in jquery?

I want to implement Pinch In and Out functionality for IPAD. I've been using this events listed on http://developer.apple.com/library/IOs/#documentation/AppleApplications/Reference/SafariWebContent/HandlingEvents/HandlingEvents.html.

$('div.mainContainer').live("gesturestart", function(e){
   alert("start " + e.originalEvent.scale);
});
$('div.mainContainer').live("gesturechange", function(e){
   alert("change " + e.originalEvent.scale);
   e.preventDefault();
});

The above code works but could not figure out the pinch in/out.

P.S. I've tried jGestures but it does not work at all.

Upvotes: 0

Views: 2608

Answers (1)

Related Questions