Fix up port event cancelling on node-select

pull/5338/head
Nick O'Leary 2025-10-29 17:50:50 +00:00
parent 603a6f0c11
commit 9d019e25c2
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9
1 changed files with 4 additions and 4 deletions

View File

@ -3640,9 +3640,9 @@ RED.view = (function() {
return tooltip;
}
function portMouseOver(port,d,portType,portIndex) {
function portMouseOver(port,d,portType,portIndex, event) {
if (mouse_mode === RED.state.SELECTING_NODE) {
d3.event.stopPropagation();
(d3.event || event).stopPropagation();
return;
}
clearTimeout(portLabelHoverTimeout);
@ -3681,9 +3681,9 @@ RED.view = (function() {
}
port.classed("red-ui-flow-port-hovered",active);
}
function portMouseOut(port,d,portType,portIndex) {
function portMouseOut(port,d,portType,portIndex, event) {
if (mouse_mode === RED.state.SELECTING_NODE) {
d3.event.stopPropagation();
(d3.event || event).stopPropagation();
return;
}
clearTimeout(portLabelHoverTimeout);