|
@ -31,7 +31,6 @@ function down(e){ |
|
|
|
|
|
|
|
|
function up(e){ |
|
|
function up(e){ |
|
|
drawing.active = false; |
|
|
drawing.active = false; |
|
|
|
|
|
|
|
|
drawing.draw_end(line); |
|
|
drawing.draw_end(line); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -52,8 +51,9 @@ function move(e){ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
function out(e){ |
|
|
function out(e){ |
|
|
drawing.active = false; |
|
|
// This didn't work too well
|
|
|
drawing.draw_cancel(line); |
|
|
// drawing.active = false;
|
|
|
|
|
|
// drawing.draw_cancel(line);
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
function init_drawing(element, draw_start, draw_move, draw_end, draw_cancel){ |
|
|
function init_drawing(element, draw_start, draw_move, draw_end, draw_cancel){ |
|
|