window.is_click = true;
canvas.addEventListener('mouseup', function(){
console.log('....');
}, false );
canvas.addEventListener('mousemove', mouseMove, false );
canvas.addEventListener('mousemove', function(){
is_click = false;
}, false );
canvas.addEventListener('mousedown', mouseDown, false );
canvas.addEventListener('mouseup', mouseUp, false );
function mouseUp(e) {
if(!is_click){
console.log('Перенес');
is_click = true;
}
else{
console.log('Кликнул');
}
};