From 036668e6e77bfb9e30074bdf06247c84a3e90747 Mon Sep 17 00:00:00 2001 From: Artem Dzhereleiko Date: Thu, 8 Jun 2023 14:41:59 +0300 Subject: [PATCH] UI: Two finger touch --- src/plugins/jquery.flot.selection.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/jquery.flot.selection.js b/src/plugins/jquery.flot.selection.js index 6c8ced6..91af5d9 100644 --- a/src/plugins/jquery.flot.selection.js +++ b/src/plugins/jquery.flot.selection.js @@ -111,7 +111,7 @@ The plugin allso adds the following methods to the plot object: } function onMouseDown(e) { - if (e.type === "touchstart" && e.originalEvent.touches.length === 1) { // only accept single touch + if (e.type === "touchstart" && e.originalEvent.touches.length === 2) { // only accept double touch selection.touch = true; } else if (e.which !== 1 || e.originalEvent.touches && e.originalEvent.touches.length > 1) { // only accept left-click return;