From 4b00a3518551bc9474ec7009e54b90760cf1faf2 Mon Sep 17 00:00:00 2001 From: Brian Jones Date: Fri, 21 Nov 2014 14:15:14 -0800 Subject: [PATCH] Fixing slider code to work with touch. This will fix the mediaplayer volume control Change-Id: I7df41fca4622679b898c0e6b877be5b0ff356e97 --- css/car/components/jQuery/jquery.nouisliderix.js | 6 +++--- packaging/modello-common.changes | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/css/car/components/jQuery/jquery.nouisliderix.js b/css/car/components/jQuery/jquery.nouisliderix.js index e57302e..eedfd59 100644 --- a/css/car/components/jQuery/jquery.nouisliderix.js +++ b/css/car/components/jQuery/jquery.nouisliderix.js @@ -199,9 +199,9 @@ } var bind = '.noUiSlider', - onEvent = (EVENT === 1 ? 'mousedown' : EVENT === 2 ? 'MSPointerDown' : EVENT === 3 ? 'mousedown' : 'touchstart') + bind + 'X', - moveEvent = (EVENT === 1 ? 'mousemove' : EVENT === 2 ? 'MSPointerMove' : EVENT === 3 ? 'mousemove' : 'touchmove') + bind, - offEvent = (EVENT === 1 ? 'mouseup' : EVENT === 2 ? 'MSPointerUp' : EVENT === 3 ? 'mouseup' :'touchend') + bind + onEvent = (EVENT === 1 ? 'mousedown' : EVENT === 2 ? 'MSPointerDown' : EVENT === 3 ? 'touchstart' : 'mousedown') + bind + 'X', + moveEvent = (EVENT === 1 ? 'mousemove' : EVENT === 2 ? 'MSPointerMove' : EVENT === 3 ? 'touchmove' : 'mousemove') + bind, + offEvent = (EVENT === 1 ? 'mouseup' : EVENT === 2 ? 'MSPointerUp' : EVENT === 3 ? 'touchend' : 'mouseup') + bind handles[i].find('div').on(onEvent, function (e) { diff --git a/packaging/modello-common.changes b/packaging/modello-common.changes index 2148bf9..1cd6d42 100644 --- a/packaging/modello-common.changes +++ b/packaging/modello-common.changes @@ -1,3 +1,7 @@ +* Fri Nov 21 2014 Brian Jones accepted/tizen/ivi/20141110.082141-1-gf84531a +- remove device from list and show scan button when unpairing +- Fixing slider code to work with touch. This will fix the mediaplayer volume control + * Fri Oct 24 2014 Brian Jones accepted/tizen/ivi/20141024.004833-1-g3fbf137 - Updating Tire and Transmission listeners for AMB -- 2.7.4