Commit f4872cdd authored by Adam Barth's avatar Adam Barth

Implement an OverscrollCurve for Scrollable

When using OverscrollCurve, we continue to scroll beyond the top of the
scrollable area but the scroll delta is reduced by 2x. A future CL will add an
animation at gesturescrollend to relax back to scroll position 0.0.

R=eseidel@chromium.org

Review URL: https://codereview.chromium.org/1002953003
parent a3885659
......@@ -8,7 +8,7 @@ class Stocklist extends FixedHeightScrollable {
Object key,
this.stocks,
this.query
}) : super(key: key, scrollCurve: new BoundedScrollCurve(minOffset: 0.0));
}) : super(key: key, scrollCurve: new OverscrollCurve());
List<Node> buildItems(int start, int count) {
return stocks
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment