Chromium Code Reviews| Index: sky/framework/components/scrollable.dart |
| diff --git a/sky/framework/components/scrollable.dart b/sky/framework/components/scrollable.dart |
| index 0bbe0e55c4eb6ae20fc64300f935a4befd7c2448..6bc7829beaad18690ae0d918f88c62104c4d405f 100644 |
| --- a/sky/framework/components/scrollable.dart |
| +++ b/sky/framework/components/scrollable.dart |
| @@ -69,11 +69,7 @@ abstract class Scrollable extends Component { |
| _simulation = scrollBehavior.release(particle); |
| if (_simulation == null) |
| return; |
| - _simulation.onTick.listen((_) { |
| - setState(() { |
| - _scrollOffset = particle.position; |
| - }); |
| - }); |
| + _simulation.onTick.listen((_) {scrollTo(particle.position);}); |
|
Hixie
2015/04/14 16:52:30
Keep it on three lines or use the => form.
|
| } |
| Particle _createParticle([double velocity = 0.0]) { |