| 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;
|
|
|