Archive for January, 2011

JSGestureRecognizer: Mobile Safari’s version of UIGestureRecognizer

Friday, January 7th, 2011

I just posted JSGestureRecognizer which is a bit like a JavaScript implementation of UIGestureRecognizer on iOS for Mobile Safari. If you’re familiar with UIGestureRecognizer, this should come in really handy.

I wrote this because:

  1. I got sick of writing touchstart/touchmove/touchend events to support Mobile Safari
  2. I didn’t see any implementation out there that I liked
  3. I like how UIGestureRecognizer works in iOS and wanted Mobile Safari to work similarly
  4. I wanted to be able to easily create my own gestures

Anyway, there’s documentation on the project page, and you can get a copy of it on github.