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 | |
7 import '../animation/generators.dart'; | 5 import '../animation/generators.dart'; |
8 import '../animation/mechanics.dart'; | 6 import '../animation/mechanics.dart'; |
9 import '../animation/scroll_behavior.dart'; | 7 import '../animation/scroll_behavior.dart'; |
10 import '../fn.dart'; | 8 import '../fn.dart'; |
11 import '../theme/view_configuration.dart' as config; | 9 import '../theme/view_configuration.dart' as config; |
12 import 'dart:math' as math; | 10 import 'dart:math' as math; |
13 import 'dart:sky' as sky; | 11 import 'dart:sky' as sky; |
14 | 12 |
15 const double _kMillisecondsPerSecond = 1000.0; | 13 const double _kMillisecondsPerSecond = 1000.0; |
16 | 14 |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 } | 137 } |
140 | 138 |
141 void _handleFlingCancel(sky.GestureEvent event) { | 139 void _handleFlingCancel(sky.GestureEvent event) { |
142 _startSimulation(_createParticle()); | 140 _startSimulation(_createParticle()); |
143 } | 141 } |
144 | 142 |
145 void _handleWheel(sky.WheelEvent event) { | 143 void _handleWheel(sky.WheelEvent event) { |
146 scrollBy(-event.offsetY); | 144 scrollBy(-event.offsetY); |
147 } | 145 } |
148 } | 146 } |
OLD | NEW |