From 2fa82d9f1fc3489cfc6719d54fa231531bb75ce6 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Thu, 15 May 2014 22:56:12 +0100 Subject: [PATCH] Touch: don't trigger radialMenu on pinch zoom --- public/red/ui/view.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/red/ui/view.js b/public/red/ui/view.js index 9dba7ea1c..ea86b41bf 100644 --- a/public/red/ui/view.js +++ b/public/red/ui/view.js @@ -87,6 +87,8 @@ RED.view = function() { .on("touchcancel", canvasMouseUp) .on("touchstart", function() { if (d3.event.touches.length>1) { + clearTimeout(touchStartTime); + touchStartTime = null; d3.event.preventDefault(); var touch0 = d3.event.touches.item(0); var touch1 = d3.event.touches.item(1);