7

I am looking for an alternative to iScroll for scrolling inside div's.

It needs to support these OS's:

  • iOS
  • Android
  • WP8

And I also need pull-to-refresh functionality.

Any suggestions?

Timo Ernst
  • 15,243
  • 23
  • 104
  • 165

2 Answers2

7

After days of evaluation, I came to the conclusion that there is no framework or library out there that fits all my needs. So, the only choice left was to create a custom solution for each operating system. This is what I came up with:

  • iOS < 5: iScroll
  • iOS >= 5: Native scrolling via CSS properties overflow-y:auto and -webkit-overflow-scrolling:touch. Pull-to-refresh via https://github.com/dantipa/pull-to-refresh-js
  • Android: iScroll
  • WP8: Native scrolling via overflow-y:auto. Own implementation for pull-to-refresh (very tricky).
Orion Edwards
  • 121,657
  • 64
  • 239
  • 328
Timo Ernst
  • 15,243
  • 23
  • 104
  • 165
2

I'm not completely sure whether all the OS's are supported, but give it a try (it also has pull-to-refresh): http://zynga.github.com/scroller/

Also http://labs.ft.com/articles/ft-scroller/ is worth of trying (supports your OS requirements), although I'm not aware of whether there's way to achieve pull-to-refresh easily.

Samuli Hakoniemi
  • 18,740
  • 1
  • 61
  • 74
  • Nope, I tried the examples on both pages on my WP8 device (HTC 8x) and they both do not work. So far I noticed that `overflow-y:auto;` works best on WP8 devices but that would mean I'd need extra handling for WP8 and I'd have to implement pull-to-refresh on my own. – Timo Ernst Jan 09 '13 at 13:37
  • @Timo did the Zynga scroller not work at all on WP8, or was it just the pull-to-refresh? – Patrick Jun 16 '13 at 15:17
  • @Patrick Sorry, I don't remember. You'll have to try on your own :-( – Timo Ernst Jun 17 '13 at 12:11
  • @Timo If only I could own one of every version of every device/browser/OS : ( – Patrick Jun 17 '13 at 19:37