Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

offsetX and offsetY don't work in Firefox - and aren't in the w3 specs - can you edit this to include compatibility?

I hit this when doing this course and filed https://bugzilla.mozilla.org/show_bug.cgi?id=1099483 but was informed that Firefox doesn't have offsetX and offsetY - http://stackoverflow.com/questions/12704686/html5-with-jquery-e-offsetx-is-undefined-in-firefox confirms that it needs a check, can you make this exercise work for all browsers?

1 Answer

Andrew Chalkley
STAFF
Andrew Chalkley
Treehouse Guest Teacher

Hi Lukas,

Several student's have posted a solution to this problem. Here's one example of how it can be fixed.

Regards
Andrew