fix: ensure lanes aren't resized when using space tool

This commit is contained in:
Philipp
2023-10-11 10:12:40 +02:00
committed by Philipp Fromme
parent e871115e5a
commit 4f6923bdc5
2 changed files with 52 additions and 0 deletions

View File

@ -114,6 +114,16 @@ export default function FixHoverBehavior(elementRegistry, eventBus, canvas) {
}
});
// ensure lanes aren't resized without their parent participant when using
// space tool
eventBus.on('spaceTool.move', HIGHEST_PRIORITY, function(event) {
var hover = event.hover;
if (hover && is(hover, 'bpmn:Lane')) {
event.hover = getLanesRoot(hover);
}
});
}
FixHoverBehavior.$inject = [