ripple-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dansilives...@apache.org
Subject git commit: Fixed touchend touches and targetTouches
Date Thu, 30 May 2013 16:06:10 GMT
Updated Branches:
  refs/heads/next ffef19905 -> dfdf1f74e


Fixed touchend touches and targetTouches

updated returned values for touches and targetTouches to return
empty arrays as per spec.


Project: http://git-wip-us.apache.org/repos/asf/incubator-ripple/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ripple/commit/dfdf1f74
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ripple/tree/dfdf1f74
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ripple/diff/dfdf1f74

Branch: refs/heads/next
Commit: dfdf1f74ea1d02ce5ba128561ba970efa8e0d7cf
Parents: ffef199
Author: Dan Silivestru <dan.silivestru@gmail.com>
Authored: Thu May 30 12:04:53 2013 -0400
Committer: Dan Silivestru <dan.silivestru@gmail.com>
Committed: Thu May 30 12:04:53 2013 -0400

----------------------------------------------------------------------
 lib/client/touchEventEmulator.js |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ripple/blob/dfdf1f74/lib/client/touchEventEmulator.js
----------------------------------------------------------------------
diff --git a/lib/client/touchEventEmulator.js b/lib/client/touchEventEmulator.js
index 18ac922..8020243 100644
--- a/lib/client/touchEventEmulator.js
+++ b/lib/client/touchEventEmulator.js
@@ -57,8 +57,8 @@ function _simulateTouchEvent(type, mouseevent) {
         shiftKey: mouseevent.shiftKey,
         metaKey: mouseevent.metaKey,
         changedTouches: [touchObj],
-        targetTouches: [touchObj],
-        touches: [touchObj]
+        targetTouches: type === "touchend" ? [] : [touchObj],
+        touches: type === "touchend" ? [] : [touchObj]
     };
 
     utils.mixin(touchObj, eventData);


Mime
View raw message