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

Unified Diff: samples/swarm/swarm_ui_lib/touch/Momentum.dart

Issue 12317107: ceil/floor/truncate/round return integers. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Reupload due to error3 Created 7 years, 9 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
« no previous file with comments | « samples/swarm/swarm_ui_lib/layout/GridTracks.dart ('k') | samples/swarm/swarm_ui_lib/view/PagedViews.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/swarm/swarm_ui_lib/touch/Momentum.dart
diff --git a/samples/swarm/swarm_ui_lib/touch/Momentum.dart b/samples/swarm/swarm_ui_lib/touch/Momentum.dart
index 4ed97e717a9c72aeec0dcdc30b2dc09b01fc7713..3940d0b11999dd91cf24381771c5976f4bbd9760 100644
--- a/samples/swarm/swarm_ui_lib/touch/Momentum.dart
+++ b/samples/swarm/swarm_ui_lib/touch/Momentum.dart
@@ -479,9 +479,8 @@ class TimeoutMomentum implements Momentum {
void _stepWithoutAnimation() {
physicsX.step();
physicsY.step();
- // TODO(jacobr): double.round() should return an int, see b/5121907
- _nextX = physicsX._currentOffset.round().toInt();
- _nextY = physicsY._currentOffset.round().toInt();
+ _nextX = physicsX._currentOffset.round();
+ _nextY = physicsY._currentOffset.round();
}
/**
« no previous file with comments | « samples/swarm/swarm_ui_lib/layout/GridTracks.dart ('k') | samples/swarm/swarm_ui_lib/view/PagedViews.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698