scrollview: added conditions for finding slider
authorMinkyu Kang <mk7.kang@samsung.com>
Fri, 11 Jan 2013 02:31:28 +0000 (11:31 +0900)
committerYoumin Ha <youmin.ha@samsung.com>
Fri, 11 Jan 2013 08:41:57 +0000 (17:41 +0900)
When click the slider label or bg then scrolling is not skipped.
This patch fix this problem. (N_SE-19080)

Change-Id: Ia3021f4c4331f7972bf0f1f37d303ee2b63c8a3f

src/widgets/common/js/jquery.mobile.tizen.scrollview.js

index ac57a99..addd0e4 100644 (file)
                                        target.is( '.ui-btn-inner' ) ||
                                        target.is( '.ui-btn-inner .ui-icon' );
 
-                       if ( this._is_button ) {
-                               if ( target.parents('.ui-slider-handle').length ||
-                                               target.is('.ui-slider-handle') ) {
-                                       this._skip_dragging = true;
-                                       return;
-                               }
+                       /* should prevent the default behavior when click the slider */
+                       if ( target.parents('.ui-slider').length || target.is('.ui-slider') ) {
+                               this._skip_dragging = true;
+                               return;
                        }
 
                        /*