summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-04-15 12:34:51 +0200
committerJules Laplace <julescarbon@gmail.com>2018-04-15 12:34:51 +0200
commitf1a446b5eb783bafc16ad5c6167b3876e7860dc6 (patch)
tree90a8537462a786b8984de917254c4aabbb4c8a15 /js
parent2816501f853c09fda63c239ed37f3fc614ff3c7a (diff)
cursor input
Diffstat (limited to 'js')
-rw-r--r--js/app.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/js/app.js b/js/app.js
index 729f0d0..6afbbcc 100644
--- a/js/app.js
+++ b/js/app.js
@@ -69,6 +69,9 @@ function bind () {
}
})
window.addEventListener("touchend", function(){
+ if (current_tool.name === "text") {
+ if (is_desktop) cursor_input.focus()
+ }
dragging = false
})