Commit graph

9 commits

Author SHA1 Message Date
Kin Blas
655e98647c Removed style properties for ui-scrollview-clip and ui-scrollview-view from the stylesheet. We now set them progrmatically since they are required.
Added a multi-direction, horizontal and vertical example to the sample page.
2010-11-29 10:55:54 -08:00
Kin Blas
84f5325ad2 Fixed a bug that was causing a vertical scrollview to jump to (0,0) when the directionLock calculated was horizontal. 2010-11-24 11:54:17 -08:00
Kin Blas
1c198d1193 Renamed _direction to _directionLock. 2010-11-24 10:04:50 -08:00
Kin Blas
e4a17298bf Some fine tuning for when we actually propagate scrolling. We now limit propagation to vertical or horizontal directions. 2010-11-24 09:32:16 -08:00
Kin Blas
910d0ded17 - Refactored some code.
- Got scroll propagation working for the case where we hit the extremes of a horizontal or vertical scrollview when dragging.
2010-11-23 13:02:12 -08:00
Kin Blas
cc34525663 Fixed direction locking and propagation. 2010-11-23 09:26:43 -08:00
Kin Blas
9bee72ca1c Get nested scrolling to work. Still need to get scroll direction locking functioning. 2010-11-22 17:22:51 -08:00
Kin Blas
cdf5311cd2 Rough support for scroll propagation. Still some bugs to fix. 2010-11-22 17:00:58 -08:00
Kin Blas
dbdfd23541 Initial checkin of experimental support for momentum scrolling. We'd really like native browser support for sub-page scrolling, but until then, we need something.
This version supports simulated scrolling via the CSS3 transform property by default, but also supports an option for positioning the old-fashioned way with top and left properties.

Still some code clean-up to do, but folks can start playing with it.

Some items/issues left to look into:

- Experiment with event delegation so we can implement nested scrollviews.
- Implement scroll direction locking.
- Decide whether to conditionally inject clip/view markup.
- Decide on final ui class names.
- Decide on how scrolling behavior is actually invoked. (data-* attribute or class)
- Decide on final set of notifications we'll need to fire off.
- Add an API so that scroll position can be adjusted after a resize/orientation change.
- Documentation that describes potential problems with performance, memory usage, etc, and workarounds.
2010-11-18 15:12:27 -08:00