Skip to content

Instantly share code, notes, and snippets.

@Prinzhorn
Created November 22, 2012 17:39
Show Gist options
  • Save Prinzhorn/4132330 to your computer and use it in GitHub Desktop.
Save Prinzhorn/4132330 to your computer and use it in GitHub Desktop.
fake scrolling using real scrolling

On iOS and Android as well JavaScript is throttled/stopped while scrolling. That's one use-case of iScroll because it doesn't use native scrolling.

Let alone the other use-cases, is it possible to prevent native scrolling (preventDefault) but then use touchmove/start/end and window.scroll to basically use the native scrollbar but no the native scrolling. In short: looks like you are scrolling (and you are), but JS still works.

Just wondering if you ever experimented with this. It's nothing I want for iScroll, just curious.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment