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

Unified Diff: samples/swipe/web/swipe.dart

Issue 12493003: Exposing Point & Rect types (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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
Index: samples/swipe/web/swipe.dart
diff --git a/samples/swipe/web/swipe.dart b/samples/swipe/web/swipe.dart
index 2f75b7a6c32afbd6d7b978bb524136d40958c3c4..5066e5418d27a0227f28394311e38ae4ff59315d 100644
--- a/samples/swipe/web/swipe.dart
+++ b/samples/swipe/web/swipe.dart
@@ -28,7 +28,7 @@ void main() {
event.preventDefault();
if (event.touches.length > 0) {
- touchStartX = event.touches[0].pageX;
+ touchStartX = event.touches[0].page.x;
}
});
@@ -36,7 +36,7 @@ void main() {
event.preventDefault();
if (touchStartX != null && event.touches.length > 0) {
- int newTouchX = event.touches[0].pageX;
+ int newTouchX = event.touches[0].page.x;
if (newTouchX > touchStartX) {
spinFigure(target, (newTouchX - touchStartX) ~/ 20 + 1);

Powered by Google App Engine
This is Rietveld 408576698