diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-04-15 12:34:51 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-04-15 12:34:51 +0200 |
| commit | f1a446b5eb783bafc16ad5c6167b3876e7860dc6 (patch) | |
| tree | 90a8537462a786b8984de917254c4aabbb4c8a15 | |
| parent | 2816501f853c09fda63c239ed37f3fc614ff3c7a (diff) | |
cursor input
| -rw-r--r-- | index.html | 1 | ||||
| -rw-r--r-- | js/app.js | 3 |
2 files changed, 4 insertions, 0 deletions
@@ -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> @@ -69,6 +69,9 @@ function bind () { } }) window.addEventListener("touchend", function(){ + if (current_tool.name === "text") { + if (is_desktop) cursor_input.focus() + } dragging = false }) |
