diff options
Diffstat (limited to 'client/lib')
| -rw-r--r-- | client/lib/util.js | 2 |
1 files changed, 1 insertions, 1 deletions
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<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 => f(e.touches[0]) } +function firstTouch(f){ return e => e.preventDefault && f(e.touches[0]) } function requestAudioContext (fn) { if (isMobile) { |
