scrollview: skip the dragging when target is slider's handle
authorMinkyu Kang <mk7.kang@samsung.com>
Fri, 4 Jan 2013 05:33:38 +0000 (14:33 +0900)
committerMinkyu Kang <mk7.kang@samsung.com>
Fri, 4 Jan 2013 11:35:13 +0000 (20:35 +0900)
In case of toggleswitch, the event target is different with slider.
So new condition was added.

Change-Id: I59c86da94c8d9ba88016e91fa530cbeefdb2025e

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

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