| 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 import '../animation/fling-curve.dart'; | 5 import '../animation/fling_curve.dart'; |
| 6 import '../fn.dart'; | 6 import '../fn.dart'; |
| 7 import 'dart:sky' as sky; | 7 import 'dart:sky' as sky; |
| 8 | 8 |
| 9 abstract class FixedHeightScrollable extends Component { | 9 abstract class FixedHeightScrollable extends Component { |
| 10 // TODO(rafaelw): This component really shouldn't have an opinion | 10 // TODO(rafaelw): This component really shouldn't have an opinion |
| 11 // about how it is sized. The owning component should decide whether | 11 // about how it is sized. The owning component should decide whether |
| 12 // it's explicitly sized or flexible or whatever... | 12 // it's explicitly sized or flexible or whatever... |
| 13 static final Style _style = new Style(''' | 13 static final Style _style = new Style(''' |
| 14 overflow: hidden; | 14 overflow: hidden; |
| 15 position: relative; | 15 position: relative; |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 } | 143 } |
| 144 | 144 |
| 145 void _handleFlingCancel(sky.GestureEvent event) { | 145 void _handleFlingCancel(sky.GestureEvent event) { |
| 146 _stopFling(); | 146 _stopFling(); |
| 147 } | 147 } |
| 148 | 148 |
| 149 void _handleWheel(sky.WheelEvent event) { | 149 void _handleWheel(sky.WheelEvent event) { |
| 150 _scrollBy(-event.offsetY); | 150 _scrollBy(-event.offsetY); |
| 151 } | 151 } |
| 152 } | 152 } |
| OLD | NEW |