Merge pull request #5338 from node-red/5335-fix-port-hover

Fix up port event cancelling on node-select
This commit is contained in:
Nick O'Leary
2025-10-30 11:48:56 +00:00
committed by GitHub

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