From 3f9baa7272327cd143e6e2cfe56a14e31634a701 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sun, 15 Apr 2018 12:04:52 +0200 Subject: dont focus cursor_input on mobile --- js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js/app.js') diff --git a/js/app.js b/js/app.js index 64f8bea..729f0d0 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) { -- cgit v1.2.3-70-g09d2 From f1a446b5eb783bafc16ad5c6167b3876e7860dc6 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sun, 15 Apr 2018 12:34:51 +0200 Subject: cursor input --- index.html | 1 + js/app.js | 3 +++ 2 files changed, 4 insertions(+) (limited to 'js/app.js') diff --git a/index.html b/index.html index c822bb2..8f42f4f 100644 --- a/index.html +++ b/index.html @@ -3,6 +3,7 @@ asciiblaster + 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 }) -- cgit v1.2.3-70-g09d2