From d96b2956888e7b6cf9b036e6ae452e7fc5b4623b Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 26 Jun 2017 03:31:05 +0200 Subject: touch events --- client/lib/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client/lib/util.js') diff --git a/client/lib/util.js b/client/lib/util.js index 6eea11f..c6df6ec 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 e.preventDefault && 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