Skip to content

Instantly share code, notes, and snippets.

View GideonBabu's full-sized avatar
💭
Looking for a challenging opportunity

Gideon Babu GideonBabu

💭
Looking for a challenging opportunity
View GitHub Profile
@ashishpuliyel
ashishpuliyel / GestureCallback Helper Class - Mobile Webkit
Created November 12, 2011 21:04
Class to handle touch gestures for scale and rotate (pinch to zoom) on Mobile webkit
/*
This is from
http://uihacker.blogspot.com/2011/04/javascript-handle-touch-gestures-for.html
I wrote a little class to handle pinch & rotate gestures on a web page in iOS. There's a bunch of event listener adding/removing, which can get a little messy, so this should help keep your code clean if you need to handle gestures.
Here's the class:
*/
function GestureCallback( element, endCallback, changeCallback ) {