Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(686)

Unified Diff: samples/ui_lib/touch/Scroller.dart

Issue 11227042: isEven, isOdd, isNegative, isMaxValue, isMinValue, isInfinite, isPositive, isSingleValue. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase. Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();

Powered by Google App Engine
This is Rietveld 408576698