From 243aa85cf1daee5ba5d2cacdac8d187d648e9693 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 26 Jun 2017 03:22:42 +0200 Subject: fading --- client/lib/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client/lib') diff --git a/client/lib/util.js b/client/lib/util.js index e8065d5..6eea11f 100644 --- a/client/lib/util.js +++ b/client/lib/util.js @@ -14,7 +14,7 @@ const browser = { isIphone, isIpad, isMobile, isDesktop } function clamp(n,a,b){ return n f(e.touches[0]) } +function firstTouch(f){ return e => e.preventDefault && f(e.touches[0]) } function requestAudioContext (fn) { if (isMobile) { -- cgit v1.2.3-70-g09d2