Skip to content

Commit

Permalink
Update jscolor to version 1.4.2.
Browse files Browse the repository at this point in the history
  • Loading branch information
eldering committed Jul 4, 2014
1 parent 74f9f89 commit c328279
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions www/js/jscolor.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/**
* jscolor, JavaScript Color Picker
*
* @version 1.4.1
* @version 1.4.2
* @license GNU Lesser General Public License, http://www.gnu.org/copyleft/lesser.html
* @author Jan Odvarko, http://odvarko.cz
* @created 2008-06-15
* @updated 2013-04-08
* @updated 2013-11-25
* @link http://jscolor.com
*/

Expand Down Expand Up @@ -628,7 +628,7 @@ var jscolor = {
}
};
if('ontouchstart' in window) { // if touch device
p.box.addEventListener('touchmove', function(e) {
var handle_touchmove = function(e) {
var event={
'offsetX': e.touches[0].pageX-touchOffset.X,
'offsetY': e.touches[0].pageY-touchOffset.Y
Expand All @@ -640,7 +640,9 @@ var jscolor = {
}
e.stopPropagation(); // prevent move "view" on broswer
e.preventDefault(); // prevent Default - Android Fix (else android generated only 1-2 touchmove events)
}, false);
};
p.box.removeEventListener('touchmove', handle_touchmove, false)
p.box.addEventListener('touchmove', handle_touchmove, false)
}
p.padM.onmouseup =
p.padM.onmouseout = function() { if(holdPad) { holdPad=false; jscolor.fireEvent(valueElement,'change'); } };
Expand Down

0 comments on commit c328279

Please sign in to comment.