Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds support for Firefox by computing Event.offsetX/Y when they are not supported natively. #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

colinbdclark
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant