1 From 7bc858f22f86693de110b1b8186fc0e26f5cccff Mon Sep 17 00:00:00 2001
2 From: Jinhyuk Jun <jinhyuk.jun@samsung.com>
3 Date: Mon, 6 May 2013 22:17:30 +0900
4 Subject: [PATCH] JQM divide jQM and Tizen slider on dragging outside of slide
7 Change-Id: Ib691ec0f2ae7edacc6f0b98d43231e48933b2afc
9 .../jquery-mobile-1.2.0/js/widgets/forms/slider.js | 3 ++-
10 1 file changed, 2 insertions(+), 1 deletion(-)
12 diff --git a/libs/js/jquery-mobile-1.2.0/js/widgets/forms/slider.js b/libs/js/jquery-mobile-1.2.0/js/widgets/forms/slider.js
13 index b189714..dae5dce 100644
14 --- a/libs/js/jquery-mobile-1.2.0/js/widgets/forms/slider.js
15 +++ b/libs/js/jquery-mobile-1.2.0/js/widgets/forms/slider.js
16 @@ -160,8 +160,9 @@ $.widget( "mobile.slider", $.mobile.widget, {
17 this._preventDocumentDrag = function( event ) {
18 // NOTE: we don't do this in refresh because we still want to
19 // support programmatic alteration of disabled inputs
20 - if ( self.dragging && !self.options.disabled ) {
21 + if ( self.dragging && !self.options.disabled && (!$(self.element).siblings(".ui-slider").is(".ui-toggle-switch") || (( $(event.target).find(".ui-slider-switch") === $(self.element) ) && slider.is(".ui-toggle-switch") && $(self.element).siblings(".ui-slider").find(".ui-slider-handle").is(".ui-btn-hover-s"))) ) {
23 + // divide jQM and Tizen slider on dragging outside of toggle area
24 // self.mouseMoved must be updated before refresh() because it will be used in the control "change" event
25 self.mouseMoved = true;