summaryrefslogtreecommitdiff
path: root/js/matrix.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-04-22 14:50:09 -0400
committerJules Laplace <jules@okfoc.us>2015-04-22 14:50:09 -0400
commit7e416f96c0944c65a17c7d127f75625cad1b7f53 (patch)
tree7efc7df0ca0b4e17dbb054be4b8861cf007d669e /js/matrix.js
parent70e19b987db384519eb7fb777ab655a621ddb012 (diff)
fixed focused char issues
Diffstat (limited to 'js/matrix.js')
-rw-r--r--js/matrix.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/js/matrix.js b/js/matrix.js
index d0c6301..dc5d166 100644
--- a/js/matrix.js
+++ b/js/matrix.js
@@ -23,6 +23,8 @@ Matrix.prototype.rebuild = function (){
this.append()
this.bind()
this.generate && this.generate()
+ // the focused character might disappear after resizing
+ focused = canvas.aa[0][0]
}
Matrix.prototype.bind = function () {}
Matrix.prototype.demolish = function (){