1

I have a sticky navigation bar on my site that needs to snap back into place as the user scrolls back up. I've done this using the scroll() function.

But on the iPad, it qeues that function until the scroll has finished, causing the bar to sticky to the very to of the page for a second and then snap back into place.

Is there anything I can do about it? Is there currently anyway of making the iPad handle scroll events the same as other browsers?

superM
  • 8,605
  • 8
  • 42
  • 51
shrewdbeans
  • 11,971
  • 23
  • 69
  • 115

1 Answers1

1

Current versions of iOS support the position:fixed attribute in CSS. Of course, then you're leaving Android behind.

Look into using iScroll - it's designed to take the quirks of various mobile browsers into account.

Community
  • 1
  • 1
Blazemonger
  • 90,923
  • 26
  • 142
  • 180