collapsible: Add collapse/expand animation (VI)
[platform/framework/web/web-ui-fw.git] / libs / patch / 0013-JQM-Block-click-event-only-with-the-element-that-doe.patch
1 From b9404d316fb5efbf9fe7c8f3c5dfd02b373eb77d Mon Sep 17 00:00:00 2001
2 From: Youmin Ha <youmin.ha@samsung.com>
3 Date: Wed, 28 Nov 2012 16:14:24 +0900
4 Subject: [PATCH] JQM: Block click event only with the element that does
5  preventDefault on vclick
6
7 Signed-off-by: Youmin Ha <youmin.ha@samsung.com>
8 ---
9  .../jquery-mobile-1.2.0/js/jquery.mobile.vmouse.js |    3 ++-
10  1 file changed, 2 insertions(+), 1 deletion(-)
11
12 diff --git a/libs/js/jquery-mobile-1.2.0/js/jquery.mobile.vmouse.js b/libs/js/jquery-mobile-1.2.0/js/jquery.mobile.vmouse.js
13 index 666a4e6..25188d8 100644
14 --- a/libs/js/jquery-mobile-1.2.0/js/jquery.mobile.vmouse.js
15 +++ b/libs/js/jquery-mobile-1.2.0/js/jquery.mobile.vmouse.js
16 @@ -302,6 +302,7 @@ function handleTouchEnd( event ) {
17                         t = getNativeEvent( event ).changedTouches[ 0 ];
18                         clickBlockList.push({
19                                 touchID: lastTouchID,
20 +                               target: event.target,
21                                 x: t.clientX,
22                                 y: t.clientY
23                         });
24 @@ -496,7 +497,7 @@ if ( eventCaptureSupported ) {
25                                         o = clickBlockList[ i ];
26                                         touchID = 0;
27  
28 -                                       if ( ( ele === target && Math.abs( o.x - x ) < threshold && Math.abs( o.y - y ) < threshold ) ||
29 +                                       if ( ( ele === target && target === o.target && Math.abs( o.x - x ) < threshold && Math.abs( o.y - y ) < threshold ) ||
30                                                                 $.data( ele, touchTargetPropertyName ) === o.touchID ) {
31                                                 // XXX: We may want to consider removing matches from the block list
32                                                 //      instead of waiting for the reset timer to fire.
33 -- 
34 1.7.9.5
35