summaryrefslogtreecommitdiff
path: root/js/app.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-04-26 19:29:30 +0200
committerJules Laplace <julescarbon@gmail.com>2018-04-26 19:29:30 +0200
commitaaa6ce7d97f065b1a70719188d436be87d1674c7 (patch)
treeac121ed336832ae721033abf5692b608a492e578 /js/app.js
parent5f145fb65802844aa22563b67361b939f01d72fe (diff)
parent4b7d6d32ed9e440dc08257148a2c10162a6e90f8 (diff)
Merge branch 'master' of lmno:ascii
Diffstat (limited to 'js/app.js')
-rw-r--r--js/app.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/js/app.js b/js/app.js
index 64f8bea..6afbbcc 100644
--- a/js/app.js
+++ b/js/app.js
@@ -58,7 +58,7 @@ function bind () {
var ae = document.activeElement
if (ae !== shader_textarea && ae !== import_textarea && ae !== username_input && ae !== upload_input) {
- cursor_input.focus()
+ if (is_desktop) cursor_input.focus()
}
if (selecting) {
@@ -69,6 +69,9 @@ function bind () {
}
})
window.addEventListener("touchend", function(){
+ if (current_tool.name === "text") {
+ if (is_desktop) cursor_input.focus()
+ }
dragging = false
})