The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Cody House On-Scroll Nav (Mobile Solution) Reply To: Cody House On-Scroll Nav (Mobile Solution)


What kind of mobile device? I know older OSes don’t fire scroll events while panning – and fixed position can be an issue too…

The script looks very straightforward otherwise. Quite nice how they keep the previousTop variable contained to the listener itself instead of making it more global. Gotta remember that. They don’t do any event throttling though, which is kind of a requirement for any decent script.