From f1cc79f1b8885c89215c5ff577d9f695558282f3 Mon Sep 17 00:00:00 2001 From: Minkyu Kang Date: Fri, 4 Jan 2013 14:33:38 +0900 Subject: [PATCH] scrollview: skip the dragging when target is slider's handle 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 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/widgets/common/js/jquery.mobile.tizen.scrollview.js b/src/widgets/common/js/jquery.mobile.tizen.scrollview.js index 238e649..ac57a99 100644 --- a/src/widgets/common/js/jquery.mobile.tizen.scrollview.js +++ b/src/widgets/common/js/jquery.mobile.tizen.scrollview.js @@ -558,12 +558,14 @@ 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; } -- 2.7.4