Slider: JQM patch fixed ( event.target match )
authorhjnim.kim <hjnim.kim@samsung.com>
Wed, 8 May 2013 08:40:29 +0000 (17:40 +0900)
committerhjnim.kim <hjnim.kim@samsung.com>
Fri, 10 May 2013 05:39:25 +0000 (14:39 +0900)
Slider event.target check before vmousemoved
N_SE-37574

Change-Id: I78d71e87def224d8f4af6b998931dfe215d9be03

libs/patch/0045-JQM-divide-jQM-and-Tizen-slider-on-dragging-outside-.patch

index 9769a5e..d71dd54 100644 (file)
@@ -18,7 +18,7 @@ index b189714..dae5dce 100644
                        // NOTE: we don't do this in refresh because we still want to
                        //       support programmatic alteration of disabled inputs
 -                      if ( self.dragging && !self.options.disabled ) {
-+                        if ( self.dragging && !self.options.disabled && (!slider.is(".ui-toggle-switch") || (slider.is(".ui-toggle-switch") && slider.find(".ui-slider-handle").is(".ui-btn-hover-s"))) ) {
++                       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"))) ) {
  
 +                              // divide jQM and Tizen slider on dragging outside of toggle area
                                // self.mouseMoved must be updated before refresh() because it will be used in the control "change" event