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

Unified Diff: samples/dartcombat/views.dart

Issue 12493003: Exposing Point & Rect types (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Sync to ToT 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 | « no previous file | samples/solar3d/web/solar.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/dartcombat/views.dart
diff --git a/samples/dartcombat/views.dart b/samples/dartcombat/views.dart
index 3ccf0b3af27bf30449ec157f7717de2982edfbc5..50fdfc6899b77457503ef049e728563c76c7b340 100644
--- a/samples/dartcombat/views.dart
+++ b/samples/dartcombat/views.dart
@@ -280,8 +280,8 @@ class ViewUtil {
static Future<List<int>> positionFromEvent(Element gridNode, MouseEvent e) {
final completer = new Completer<List<int>>();
window.setImmediate(() {
- int x = (e.pageX - gridNode.offsetLeft) ~/ 50;
- int y = (e.pageY - gridNode.offsetTop) ~/ 50;
+ int x = (e.page.x - gridNode.offsetLeft) ~/ 50;
+ int y = (e.page.y - gridNode.offsetTop) ~/ 50;
completer.complete([x, y]);
});
return completer.future;
« no previous file with comments | « no previous file | samples/solar3d/web/solar.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698