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 trialKaren Newman
Courses Plus Student 7,073 PointsjQuery Basics - Drawing Application issue with Firefox
In Firefox, the drawing application doesn't seem to be functioning (works just fine in Chrome and IE11). When I inspect the "lastEvent," it shows both "offsetX" and "offsetY" as "undefined."
I got through the project just fine by viewing in other browsers, but wanted to bring this to your attention.
1 Answer
Andrew Chalkley
Treehouse Guest TeacherHey Jim Henderson,
Way back in stage 2 I said "I encourage you to try these projects in different browsers and devices and see if they break. If they do, try and fix them." I'm glad to see you're finding issues, these are all learning opportunities.
There is another post in this forum with a solution. See if you can find it & integrate it in to your project :)
Regards
Andrew
Kevin Murphy
24,380 PointsAndrew Chalkley - I added John Kay 's correction to my project FF bug correction and it works beautifully.
It would be very useful and helpful if you could explain why that code corrects the issue and some background why (or a theory as to why) the offsetX and offsetY could be undefined based on browser. Thanks.
Kevin Murphy
24,380 PointsKevin Murphy
24,380 PointsThanks Jim. I am using FF and just got to this stage and noticed in the console that my offsetX and offsetY were undefined.
I also suspect that there is another issue w/ FF that explains why the default state of the span (color preview) in the New Color selector window is not black as it is in Andrew's walk through.