Index: samples/ui_lib/touch/Scroller.dart |
diff --git a/samples/ui_lib/touch/Scroller.dart b/samples/ui_lib/touch/Scroller.dart |
index 64210e9ce6f8e0f2716f089f819d221e041aacfc..401b807067c11b73693efb362ecace2de442ab99 100644 |
--- a/samples/ui_lib/touch/Scroller.dart |
+++ b/samples/ui_lib/touch/Scroller.dart |
@@ -353,10 +353,10 @@ class Scroller implements Draggable, MomentumDelegate { |
int y = end.y.toInt(); |
// If we are throwing in the opposite direction of the existing momentum, |
// cancel the current momentum. |
- if (deltaX != 0 && deltaX.isNegative() != (end.x - start.x).isNegative()) { |
+ if (deltaX != 0 && deltaX.isNegative != (end.x - start.x).isNegative) { |
x = start.x; |
} |
- if (deltaY != 0 && deltaY.isNegative() != (end.y - start.y).isNegative()) { |
+ if (deltaY != 0 && deltaY.isNegative != (end.y - start.y).isNegative) { |
y = start.y; |
} |
x += deltaX.toInt(); |