mirror of
https://github.com/PitPik/colorPicker.git
synced 2025-09-24 16:40:57 -06:00
parent
99d7f63b8e
commit
189f81b0c5
@ -445,6 +445,9 @@
|
|||||||
function installEventListeners(THIS, off) {
|
function installEventListeners(THIS, off) {
|
||||||
var onOffEvent = off ? removeEvent : addEvent;
|
var onOffEvent = off ? removeEvent : addEvent;
|
||||||
|
|
||||||
|
onOffEvent(_isIE ? document.body : window, 'mouseup', stopChange);
|
||||||
|
onOffEvent(_isIE ? document.body : window, 'touchend', stopChange);
|
||||||
|
|
||||||
function touchStart_MouseDown(e) {
|
function touchStart_MouseDown(e) {
|
||||||
var event = e || window.event,
|
var event = e || window.event,
|
||||||
page = getPageXY(event),
|
page = getPageXY(event),
|
||||||
@ -539,9 +542,6 @@
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
addEvent(_isIE ? document.body : window, 'mouseup', stopChange);
|
|
||||||
addEvent(_isIE ? document.body : window, 'touchend', stopChange);
|
|
||||||
|
|
||||||
// ------------------------------------------------------ //
|
// ------------------------------------------------------ //
|
||||||
// --------- Event listner's callback functions -------- //
|
// --------- Event listner's callback functions -------- //
|
||||||
// -------------------------------------------------------//
|
// -------------------------------------------------------//
|
||||||
|
Loading…
x
Reference in New Issue
Block a user