Stopping selection of canvas when drawing

This commit is contained in:
Eli Grey
2013-06-21 14:46:31 -04:00
parent 52a5ae33fe
commit 4d049e9c43
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -146,6 +146,7 @@ canvas_clear_button.addEventListener("click", function() {
0;
}, false);
canvas.addEventListener("mousedown", function(event) {
event.preventDefault();
drawing = true;
add_point(event.pageX - canvas.offsetLeft, event.pageY - canvas.offsetTop, false);
draw();