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

Unified Diff: samples/swarm/swarm_ui_lib/touch/Geometry.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 | « samples/spirodraw/web/colorpicker.dart ('k') | samples/swarm/swarm_ui_lib/touch/Scrollbar.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/Geometry.dart
diff --git a/samples/swarm/swarm_ui_lib/touch/Geometry.dart b/samples/swarm/swarm_ui_lib/touch/Geometry.dart
index 0100a10e04517b8b0ed7b6bb5bb0ac3e2b7a7b0e..3bfea0fbd15be624849c6852cccca3370a9351fb 100644
--- a/samples/swarm/swarm_ui_lib/touch/Geometry.dart
+++ b/samples/swarm/swarm_ui_lib/touch/Geometry.dart
@@ -26,7 +26,7 @@ class Coordinate {
* Gets the coordinates of a touch's location relative to the window's
* viewport. [input] is either a touch object or an event object.
*/
- Coordinate.fromClient(var input) : this(input.clientX, input.clientY);
+ Coordinate.fromClient(var input) : this(input.client.x, input.client.y);
static Coordinate difference(Coordinate a, Coordinate b) {
return new Coordinate(a.x - b.x, a.y - b.y);
« no previous file with comments | « samples/spirodraw/web/colorpicker.dart ('k') | samples/swarm/swarm_ui_lib/touch/Scrollbar.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698