| Index: sky/sdk/lib/animation/scroll_behavior.dart
|
| diff --git a/sky/sdk/lib/animation/scroll_behavior.dart b/sky/sdk/lib/animation/scroll_behavior.dart
|
| index f94e5378a085e84ac4feef577df49b9df16fdf25..5afcd67006da0a3ad6a713e0f81d507631509e92 100644
|
| --- a/sky/sdk/lib/animation/scroll_behavior.dart
|
| +++ b/sky/sdk/lib/animation/scroll_behavior.dart
|
| @@ -24,6 +24,7 @@ class BoundedScrollBehavior extends ScrollBehavior {
|
|
|
| BoundedScrollBehavior({this.minOffset: 0.0, this.maxOffset});
|
|
|
| + @override
|
| double applyCurve(double scrollOffset, double scrollDelta) {
|
| double newScrollOffset = scrollOffset + scrollDelta;
|
| if (minOffset != null)
|
| @@ -60,6 +61,7 @@ class OverscrollBehavior extends ScrollBehavior {
|
|
|
| double get maxScroll => math.max(0.0, _contentsHeight - _containerHeight);
|
|
|
| + @override
|
| Simulation release(Particle particle) {
|
| System system;
|
| if ((particle.position >= 0.0) && (particle.position < maxScroll)) {
|
| @@ -97,6 +99,7 @@ class OverscrollBehavior extends ScrollBehavior {
|
| targetPosition: maxScroll);
|
| }
|
|
|
| + @override
|
| double applyCurve(double scrollOffset, double scrollDelta) {
|
| double newScrollOffset = scrollOffset + scrollDelta;
|
| // If we're overscrolling, we want move the scroll offset 2x
|
|
|