Description[Effen] Prevent scrolling past the bottom of a scrollable list.
- make the ScrollBehavior instance long-lived, rather than recreating
it each time we update the list contents.
- have OverscrollBehavior track the total height of the contents and
the height of the scrollable region, so that it can determine when
to stop scrolling down.
- teach OverscrollBehavior about how to determine when to stop
scrolling down, and how to bounce when it's too far down.
- replace the 'energy' concept in Particles with a method that sets
the energy and direction at the same time, instead of assuming that
the direction is always positive when setting energy.
- make FixedHeightScrollable lists track the number of items in the
list and have them update their ScrollBehavior regarding this
information as it changes.
- track how many items are currently showing in the list stock list.
R=eseidel@chromium.org
Committed: https://chromium.googlesource.com/external/mojo/+/f0da1d12a46c94aa9d72ce63b0eba5c08a47ef05
Patch Set 1 #Patch Set 2 : Move the creation of the OverscrollBehavior class to FixedHeightScrollable, since we already assumeā¦ #
Total comments: 3
Messages
Total messages: 7 (2 generated)
|