blob: d71dd54ffdbb79022b2e23cbf2843f75d27effcb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
From 7bc858f22f86693de110b1b8186fc0e26f5cccff Mon Sep 17 00:00:00 2001
From: Jinhyuk Jun <jinhyuk.jun@samsung.com>
Date: Mon, 6 May 2013 22:17:30 +0900
Subject: [PATCH] JQM divide jQM and Tizen slider on dragging outside of slide
area
Change-Id: Ib691ec0f2ae7edacc6f0b98d43231e48933b2afc
---
.../jquery-mobile-1.2.0/js/widgets/forms/slider.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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
index b189714..dae5dce 100644
--- 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
@@ -160,8 +160,9 @@ $.widget( "mobile.slider", $.mobile.widget, {
this._preventDocumentDrag = function( event ) {
// 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 && (!$(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
self.mouseMoved = true;
--
1.7.9.5
|