1 From ac56c1f0e6620cbd83127b2ca3192723dcf50d56 Mon Sep 17 00:00:00 2001
2 From: Youmin Ha <youmin.ha@samsung.com>
3 Date: Sat, 8 Sep 2012 22:43:29 +0900
4 Subject: [PATCH] JQM: Block click event only with the element that does preventDefault on vclick
6 Signed-off-by: Youmin Ha <youmin.ha@samsung.com>
8 .../jquery-mobile-1.1.0/js/jquery.mobile.vmouse.js | 3 ++-
9 1 file changed, 2 insertions(+), 1 deletion(-)
11 diff --git a/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.vmouse.js b/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.vmouse.js
12 index b608460..8d7d9a2 100644
13 --- a/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.vmouse.js
14 +++ b/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.vmouse.js
15 @@ -300,6 +300,7 @@ function handleTouchEnd( event ) {
16 t = getNativeEvent( event ).changedTouches[ 0 ];
19 + target: event.target,
23 @@ -494,7 +495,7 @@ if ( eventCaptureSupported ) {
24 o = clickBlockList[ i ];
27 - if ( ( ele === target && Math.abs( o.x - x ) < threshold && Math.abs( o.y - y ) < threshold ) ||
28 + if ( ( ele === target && target === o.target && Math.abs( o.x - x ) < threshold && Math.abs( o.y - y ) < threshold ) ||
29 $.data( ele, touchTargetPropertyName ) === o.touchID ) {
30 // XXX: We may want to consider removing matches from the block list
31 // instead of waiting for the reset timer to fire.