You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ripple.apache.org by da...@apache.org on 2013/05/30 18:06:10 UTC
git commit: Fixed touchend touches and targetTouches
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 <da...@gmail.com>
Authored: Thu May 30 12:04:53 2013 -0400
Committer: Dan Silivestru <da...@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);