Skip to content
kerrishotts edited this page Nov 13, 2012 · 2 revisions

SCROLLER (in framework/scroller.js) provides various scrolling utilities.

This library is intended to be similar to iScroll-lite in that it should be a relatively fast method of scrolling content without being horribly laggy or cause incorrect "clicks" to be registered.

This library does NOT support physics-based scrolling, except for a small inertia animation at the end of a scroll. It is not intended to replicate native scrolling /at all/. There are no bounces at the top or bottom. There is no visible scroll bar either. Essentially, overflow:scroll as supported on iOS 5 with no bounce/inertia scrolling.

Consider this library an experiment. The idea is to be simpler than iScroll to use -- for example, the scroller only needs to be created once -- it does not need to be refreshed when AJAX content loads. It is intended to be at least as fast as iScroll, if not a little faster. It is not, however, intended to be a native scrolling solution. At this time, I do not believe it truly possible or practice, and users will notice any non-native solution that tries to match, so why try?

Usage:

var yourScroller = new SCROLLER.GenericScroller ( "the_element_to_scroll" );

where you have the following DOM tree:

   container_element
    - the_element_to_scroll

Future Goals:

  • Detect native physics scrolling and use it when possible
  • Detect native overflow:scroll (non-physics) and use it when possible
  • Improve the inertial scrolling at end (this is a very rough implementation)
  • Become irrelevant. I hope for a day when all mobile browsers can scroll complex content natively and smoothly.

Supported Platforms:

  • Android 2.3+
  • iOS 4.3+
  • probably any webkit browser?

Known Issues:

  • A little too willing to call a scroll a "click".

Version

0.1 Introduced

0.2 Docs Valid

Clone this wiki locally