Merge pull request #820 from HansMuller/pageable_list
Revised PageableList et al An itemExtent-computing SizeObserver is no longer needed to use PageableList. The PageableList just uses its own size as the itemExtent. Added the itemsSnapAlignment property to PageableList which enables snapping scrolls to an adjacent item (the default), or any item boundary no not at all. PageableList scrollOffsets now vary from 0.0 to itemCount instead of 0.0 to itemExtent * itemCount. Using logical coordinates instead of pixel coordinates means that the scroll position is insensitive to changes in the PageablList's size. Added HomogenousPageViewport which is used by PageableList. HomogenousPageViewport scrollOffsets are defined as for PageableList. Factored the (substantial) common parts of HomogenousViewport HomogenousPageViewport into a file private _ViewportBase class. Removed PageableWidgetList. PageableList now just extends Scrollable. Moved PageableList into its own file. Removed the pixel dependencies from ScrollBehavior. ScrollBehavior.createFlingSimulation() no longer sets the simulation's tolerance. The caller must do this instead. Scrollable now uses pixelToScrollOffset() to convert from input gesture positions and velocities to scrollOffsets. Fixes #710
Showing
This diff is collapsed.
Please register or sign in to comment