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