Popup: Apply tizen style popup and attribute support
[platform/framework/web/web-ui-fw.git] / libs / patch / jqm-1.1.0 / 0010-JQM-Prevent-blinking-on-page-transition.patch
1 From bf9dc02776446faee9e5587360584d9d9b9b135e Mon Sep 17 00:00:00 2001
2 From: Youmin Ha <youmin.ha@samsung.com>
3 Date: Tue, 3 Jul 2012 15:07:07 +0900
4 Subject: [PATCH] JQM:Prevent blinking on page transition
5
6 Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
7 Signed-off-by: Youmin Ha <youmin.ha@samsung.com>
8 ---
9  .../js/jquery.mobile.transition.js                 |   11 ++++++++++-
10  1 file changed, 10 insertions(+), 1 deletion(-)
11
12 diff --git a/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.transition.js b/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.transition.js
13 index 56f93a6..e5555e8 100644
14 --- a/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.transition.js
15 +++ b/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.transition.js
16 @@ -29,6 +29,15 @@ var createHandler = function( sequential ){
17                                 $.mobile.pageContainer.toggleClass( "ui-mobile-viewport-transitioning viewport-" + name );
18                         },
19                         scrollPage = function(){
20 +                               // Prevent blinking on page scrolling in Tizen/Android devices.
21 +                               // Don't scoll window, when current scroll top(scrollTop()) is already at toScroll,
22 +                               // or when current scroll top is 0 and toScroll is same to defaultHomeScroll
23 +                               // (which means the top position of page). In these case, page scrolling is not needed.
24 +                               var st = $( window ).scrollTop();
25 +                               if( st === toScroll || ( $.mobile.defaultHomeScroll === toScroll && st == 0 ) ) {
26 +                                       return;
27 +                               }
28 +
29                                 // By using scrollTo instead of silentScroll, we can keep things better in order
30                                 // Just to be precautios, disable scrollstart listening like silentScroll would
31                                 $.event.special.scrollstart.enabled = false;
32 @@ -150,4 +159,4 @@ $.mobile.transitionFallbacks = {};
33  })( jQuery, this );
34  //>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
35  });
36 -//>>excludeEnd("jqmBuildExclude");
37 \ No newline at end of file
38 +//>>excludeEnd("jqmBuildExclude");
39 -- 
40 1.7.9.5
41