aboutsummaryrefslogtreecommitdiffstats
path: root/src/client/Utils.hx
diff options
context:
space:
mode:
authorRblSb <msrblsb@gmail.com>2020-04-06 21:47:29 +0300
committerRblSb <msrblsb@gmail.com>2020-04-06 21:47:29 +0300
commit4c955af4c4be0d3c1d002a867c89166811373a9f (patch)
tree06f7e23824b976f5c7b5907fa64e06321f1810d0 /src/client/Utils.hx
parentbda198c729ba65905bc34d15b44eb51f8336a8ff (diff)
Skip item confirmation for touch
Diffstat (limited to 'src/client/Utils.hx')
-rw-r--r--src/client/Utils.hx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client/Utils.hx b/src/client/Utils.hx
index 69671d2..3ac9953 100644
--- a/src/client/Utils.hx
+++ b/src/client/Utils.hx
@@ -6,6 +6,10 @@ import js.Browser.window;
class Utils {
+ public static function isTouch():Bool {
+ return js.Syntax.code("'ontouchstart' in window");
+ }
+
public static function prepend(parent:Element, child:Element):Void {
if (parent.firstChild == null) parent.appendChild(child);
else parent.insertBefore(child, parent.firstChild);
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage