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

Unified Diff: samples/swarm/swarm_ui_lib/touch/TouchHandler.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/swarm/swarm_ui_lib/touch/Scrollbar.dart ('k') | samples/swarm/swarm_ui_lib/touch/TouchUtil.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/TouchHandler.dart
diff --git a/samples/swarm/swarm_ui_lib/touch/TouchHandler.dart b/samples/swarm/swarm_ui_lib/touch/TouchHandler.dart
index 7927465c4f6b85b435ac2fe8718562cec6cd5dc3..ea7dff2d7c98e7aac76972006374fcbd5fb37e04 100644
--- a/samples/swarm/swarm_ui_lib/touch/TouchHandler.dart
+++ b/samples/swarm/swarm_ui_lib/touch/TouchHandler.dart
@@ -239,8 +239,8 @@ class TouchHandler {
return;
}
Touch touch = _getLastTouch();
- int clientX = touch.clientX;
- int clientY = touch.clientY;
+ int clientX = touch.client.x;
+ int clientY = touch.client.y;
if (_dragging) {
_endTime = timeStamp;
_endTouchX = clientX;
@@ -264,8 +264,8 @@ class TouchHandler {
return;
}
final touch = e.touches[0];
- int clientX = touch.clientX;
- int clientY = touch.clientY;
+ int clientX = touch.client.x;
+ int clientY = touch.client.y;
int moveX = _lastTouchX - clientX;
int moveY = _lastTouchY - clientY;
_totalMoveX += moveX.abs();
@@ -316,15 +316,15 @@ class TouchHandler {
return;
}
final touch = e.touches[0];
- _startTouchX = _lastTouchX = touch.clientX;
- _startTouchY = _lastTouchY = touch.clientY;
+ _startTouchX = _lastTouchX = touch.client.x;
+ _startTouchY = _lastTouchY = touch.client.y;
_startTime = e.timeStamp;
// TODO(jacobr): why don't we just clear the lists?
_recentTouchesX = new List<int>();
_recentTouchesY = new List<int>();
- _recentTouchesX.add(touch.clientX);
+ _recentTouchesX.add(touch.client.x);
_recentTouchesX.add(e.timeStamp);
- _recentTouchesY.add(touch.clientY);
+ _recentTouchesY.add(touch.client.y);
_recentTouchesY.add(e.timeStamp);
_lastEvent = e;
_beginTracking();
« no previous file with comments | « samples/swarm/swarm_ui_lib/touch/Scrollbar.dart ('k') | samples/swarm/swarm_ui_lib/touch/TouchUtil.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698