summaryrefslogtreecommitdiff
path: root/client/lib
diff options
context:
space:
mode:
Diffstat (limited to 'client/lib')
-rw-r--r--client/lib/util.js2
1 files changed, 1 insertions, 1 deletions
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<a?a:n<b?n:b }
function choice (a){ return a[ Math.floor(Math.random() * a.length) ] }
function mod(n,m){ return n-(m * Math.floor(n/m)) }
-function firstTouch(f){ return e => e.preventDefault && f(e.touches[0]) }
+function firstTouch(f){ return e => { e.preventDefault(); f(e.touches[0]) }}
function requestAudioContext (fn) {
if (isMobile) {