emrox/finger.js — pull request #1 by colinbdclark (2012-04-15 17:38:15+00:00)
Title: Adds support for Firefox by computing Event.offsetX/Y when they are not supported natively.

Hi Stefan,

Finger.js is really awesome! Thanks for letting me know about it, and I'm really glad that Flocking has been helpful for your project. I've been playing around with it this morning and it works great.

At first, I couldn't get it to work in Firefox, but I managed to track it down to an issue with Event.offsetX and offsetY, which Firefox doesn't support natively. jQuery, unfortunately, doesn't normalize it for us, so I wrote a quick function to do so, which is included in this pull request. In case you're interested, here's the relevant jQuery bug report, along with the solution others recommend. My implementation should be relatively fast:

http://bugs.jquery.com/ticket/8523

I hope you find this pull request helpful, and please don't hesitate to drop me a line if you need new features in Flocking to support your project! I look forward to trying out the iOS app once you've got it working.