ch.mouseIgnoreId !== -1) {
return;
}
for (var i = 0, en; i < MOUSE_EVENTS.length; i++) {
en = MOUSE_EVENTS[i];
if (set) {
document.addEventListener(en, mouseCanceller, true);
} else {
document.removeEventListener(en, mouseCanceller, true);
}
}
if (set) {
POINTERSTATE.mouse.mouseIgnoreId = setTimeout(ignoreMouse, MOUSE_TIMEOUT);
} else {
POINTERSTATE.mouse.target = null;
POINTERSTATE.touch.mouseIgnoreId = -1;
}
}
var POINTERSTATE = {
tapPrevented: false,
mouse: {
target: null
},
touch: {
x: 0,
y: 0,
id: -1,
