mirror of
https://github.com/bpmn-io/bpmn-js.git
synced 2025-08-26 04:32:44 +08:00
fix: ensure lanes aren't resized when using space tool
This commit is contained in:
@ -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 = [
|
||||
|
Reference in New Issue
Block a user