From 1872c5cfdbf35ee5b521c1b908a8885a1a718186 Mon Sep 17 00:00:00 2001 From: Joshua Moerman Date: Tue, 23 Apr 2013 15:10:50 +0200 Subject: [PATCH] Better input handling --- drawing.js | 6 +++--- index.css | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/drawing.js b/drawing.js index baf9245..81ebc1f 100644 --- a/drawing.js +++ b/drawing.js @@ -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){ diff --git a/index.css b/index.css index 3c5af26..dfc2f3e 100644 --- a/index.css +++ b/index.css @@ -15,6 +15,9 @@ a { #text { position: relative; text-align: center; + width: 300px; + margin-left:auto; + margin-right:auto; } /* Login */