summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--js/matrix.js1
-rw-r--r--js/ui/brush.js4
2 files changed, 4 insertions, 1 deletions
diff --git a/js/matrix.js b/js/matrix.js
index 9ec3a06..21963f1 100644
--- a/js/matrix.js
+++ b/js/matrix.js
@@ -133,7 +133,6 @@ Matrix.prototype.getCell = function(x,y){
Matrix.prototype.resize = function(w,h){
w = w || canvas.w
h = h || canvas.h
- console.log("resize to", w, h)
var div, row, lex
var f = this.f, old_h = this.aa.length, old_w = this.aa[0].length
var rapper = this.rapper
diff --git a/js/ui/brush.js b/js/ui/brush.js
index ae1e36e..d9f35ce 100644
--- a/js/ui/brush.js
+++ b/js/ui/brush.js
@@ -12,6 +12,7 @@ var brush = (function(){
var last_point = [0,0]
var dragging = false
+ var erasing = false
brush.forEach(function(lex, x, y){
@@ -52,6 +53,9 @@ var brush = (function(){
lex.focus()
})
})
+ window.addEventListener('mouseup', function(e){
+ dragging = erasing = false
+ })
}
brush.expand = function(i){