1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Touch: don't trigger radialMenu on pinch zoom

This commit is contained in:
Nick O'Leary 2014-05-15 22:56:12 +01:00
parent e524393d87
commit 2fa82d9f1f

View File

@ -87,6 +87,8 @@ RED.view = function() {
.on("touchcancel", canvasMouseUp) .on("touchcancel", canvasMouseUp)
.on("touchstart", function() { .on("touchstart", function() {
if (d3.event.touches.length>1) { if (d3.event.touches.length>1) {
clearTimeout(touchStartTime);
touchStartTime = null;
d3.event.preventDefault(); d3.event.preventDefault();
var touch0 = d3.event.touches.item(0); var touch0 = d3.event.touches.item(0);
var touch1 = d3.event.touches.item(1); var touch1 = d3.event.touches.item(1);