UI: Two finger touch

pull/4/head
Artem Dzhereleiko 3 years ago
parent 0ff0c775db
commit 036668e6e7

@ -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;

Loading…
Cancel
Save