mirror of
https://github.com/node-red/node-red.git
synced 2025-12-27 15:34:26 +01:00
Merge pull request #5338 from node-red/5335-fix-port-hover
Fix up port event cancelling on node-select
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user