Home › Forums › JavaScript › Cody House On-Scroll Nav (Mobile Solution) › Reply To: Cody House On-Scroll Nav (Mobile Solution)
November 28, 2017 at 8:55 am
#263041
Shikkediel
Participant
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.