Better input handling
This commit is contained in:
parent
855cc8072a
commit
1872c5cfdb
2 changed files with 6 additions and 3 deletions
|
@ -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){
|
||||
|
|
|
@ -15,6 +15,9 @@ a {
|
|||
#text {
|
||||
position: relative;
|
||||
text-align: center;
|
||||
width: 300px;
|
||||
margin-left:auto;
|
||||
margin-right:auto;
|
||||
}
|
||||
|
||||
/* Login */
|
||||
|
|
Reference in a new issue