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

Unified Diff: samples/spirodraw/web/colorpicker.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/solar3d/web/solar.dart ('k') | samples/swarm/swarm_ui_lib/touch/Geometry.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/spirodraw/web/colorpicker.dart
diff --git a/samples/spirodraw/web/colorpicker.dart b/samples/spirodraw/web/colorpicker.dart
index cbe86aa7eca927ab501573c6cefc103c251367fb..cd880b5c1f7cf6049f173d864ae199b6af99155c 100644
--- a/samples/spirodraw/web/colorpicker.dart
+++ b/samples/spirodraw/web/colorpicker.dart
@@ -39,8 +39,8 @@ class ColorPicker {
}
void onMouseMove(MouseEvent event) {
- int x = event.offsetX;
- int y = event.offsetY - 40;
+ int x = event.offset.x;
+ int y = event.offset.y - 40;
if (( y < 0) || (x >= width)) {
return;
}
@@ -51,8 +51,8 @@ class ColorPicker {
void onMouseDown(MouseEvent event) {
Element elt = event.target;
event.cancelBubble = true;
- int x = event.offsetX;
- int y = event.offsetY - 40;
+ int x = event.offset.x;
+ int y = event.offset.y - 40;
if ((y < 0) || (x >= width)) {
return;
}
« no previous file with comments | « samples/solar3d/web/solar.dart ('k') | samples/swarm/swarm_ui_lib/touch/Geometry.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698