Popup: Apply tizen style popup and attribute support
[platform/framework/web/web-ui-fw.git] / libs / patch / jqm-1.1.0 / 0020-JQM-Block-click-event-only-with-the-element-that-doe.patch
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
5
6 Signed-off-by: Youmin Ha <youmin.ha@samsung.com>
7 ---
8  .../jquery-mobile-1.1.0/js/jquery.mobile.vmouse.js |    3 ++-
9  1 file changed, 2 insertions(+), 1 deletion(-)
10
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 ];
17                         clickBlockList.push({
18                                 touchID: lastTouchID,
19 +                               target: event.target,
20                                 x: t.clientX,
21                                 y: t.clientY
22                         });
23 @@ -494,7 +495,7 @@ if ( eventCaptureSupported ) {
24                                         o = clickBlockList[ i ];
25                                         touchID = 0;
26  
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.
32 -- 
33 1.7.9.5
34