OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
| 5 library components_scrollable; |
| 6 |
5 import '../animation/generators.dart'; | 7 import '../animation/generators.dart'; |
6 import '../animation/mechanics.dart'; | 8 import '../animation/mechanics.dart'; |
7 import '../animation/scroll_behavior.dart'; | 9 import '../animation/scroll_behavior.dart'; |
8 import '../fn.dart'; | 10 import '../fn.dart'; |
9 import '../theme/view_configuration.dart' as config; | 11 import '../theme/view_configuration.dart' as config; |
10 import 'dart:math' as math; | 12 import 'dart:math' as math; |
11 import 'dart:sky' as sky; | 13 import 'dart:sky' as sky; |
12 | 14 |
13 const double _kMillisecondsPerSecond = 1000.0; | 15 const double _kMillisecondsPerSecond = 1000.0; |
14 | 16 |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 } | 139 } |
138 | 140 |
139 void _handleFlingCancel(sky.GestureEvent event) { | 141 void _handleFlingCancel(sky.GestureEvent event) { |
140 _startSimulation(_createParticle()); | 142 _startSimulation(_createParticle()); |
141 } | 143 } |
142 | 144 |
143 void _handleWheel(sky.WheelEvent event) { | 145 void _handleWheel(sky.WheelEvent event) { |
144 scrollBy(-event.offsetY); | 146 scrollBy(-event.offsetY); |
145 } | 147 } |
146 } | 148 } |
OLD | NEW |