Do not block touch events on ports

pull/5527/head
Nick O'Leary 2026-03-06 11:28:37 +00:00
parent 3f86ccfd14
commit b95d65e4d8
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9
1 changed files with 3 additions and 2 deletions

View File

@ -3226,7 +3226,8 @@ RED.view = (function() {
clearSuggestedFlow();
RED.contextMenu.hide();
evt = evt || d3.event;
if (evt.button !== 0) {
if (!evt.touches && evt.button !== 0) {
return;
}
if (mouse_mode === RED.state.SELECTING_NODE) {
@ -4082,7 +4083,7 @@ RED.view = (function() {
d3.event.stopPropagation();
return;
}
if (d3.event.button !== 0) {
if (!d3.event.touches && d3.event.button !== 0) {
return
}
mousedown_link = d;