From 4e44d068644a72238ab5d629aae913ac4bcefe67 Mon Sep 17 00:00:00 2001 From: Gregg Tavares Date: Mon, 25 Dec 2017 18:50:09 +0900 Subject: [PATCH] prevent zoom on double tap --- src/hft/scripts/misc/touch.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/hft/scripts/misc/touch.js b/src/hft/scripts/misc/touch.js index 3bb3e18..35a093b 100644 --- a/src/hft/scripts/misc/touch.js +++ b/src/hft/scripts/misc/touch.js @@ -290,6 +290,7 @@ define( }; var onPointerDown = function(e) { + e.preventDefault(); var padId = getClosestPad(e); checkStart(padId, e); }; @@ -435,6 +436,7 @@ define( //}; var handleButtonDown = function(e, buttonInfo) { + e.preventDefault(); addPointerId(buttonInfo, e.pointerId, e.timeStamp); };