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

.on(click) event fires on fixed position element when scrolling on IOS mobile device

I have a function that triggers when an li element or menu is clicked that slides the nav container left the width of the window. For some reason in my iPhone after i trigger the initial click to slide the container off screen, If I scroll up or down the event gets triggers again and again every time i scroll. The event should only fire when my menu button or li element is clicked. I noticed it has something to do with position:fixed on the header that contains the menu. If i take the position fixed off, it works fine. What can i do to keep my position fixed without triggering the click event every time I scroll on iOS device

here's a link to the site http://www.lunacarpentry.com/peachietouch

Could you include some code in your question?