summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--index.html1
-rw-r--r--js/app.js3
2 files changed, 4 insertions, 0 deletions
diff --git a/index.html b/index.html
index c822bb2..8f42f4f 100644
--- a/index.html
+++ b/index.html
@@ -3,6 +3,7 @@
<head>
<meta charset="UTF-8">
<title>asciiblaster</title>
+<meta name="viewport" content="width=device-width, maximum-scale=1.0, user-scalable=yes" />
<link rel="stylesheet" href="css/sally.css" type="text/css" charset="utf-8" />
<link rel="stylesheet" href="css/ak.css" type="text/css" charset="utf-8" />
</head>
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
})