In case of toggleswitch, the event target is different with slider.
So new condition was added.
Change-Id: I59c86da94c8d9ba88016e91fa530cbeefdb2025e
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;
}