Browse Source

Better input handling

master
Joshua Moerman 12 years ago
parent
commit
1872c5cfdb
  1. 6
      drawing.js
  2. 3
      index.css

6
drawing.js

@ -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){

3
index.css

@ -15,6 +15,9 @@ a {
#text { #text {
position: relative; position: relative;
text-align: center; text-align: center;
width: 300px;
margin-left:auto;
margin-right:auto;
} }
/* Login */ /* Login */