diff --git a/lib/features/modeling/behavior/ResizeLaneBehavior.js b/lib/features/modeling/behavior/ResizeLaneBehavior.js index d60354c5..ee9d3ab0 100644 --- a/lib/features/modeling/behavior/ResizeLaneBehavior.js +++ b/lib/features/modeling/behavior/ResizeLaneBehavior.js @@ -4,6 +4,8 @@ var is = require('../../../util/ModelUtil').is; var roundBounds = require('diagram-js/lib/layout/LayoutUtil').roundBounds; +var hasPrimaryModifier = require('diagram-js/lib/util/Mouse').hasPrimaryModifier; + var SLIGHTLY_HIGHER_PRIORITY = 1001; @@ -30,7 +32,7 @@ function ResizeLaneBehavior(eventBus, modeling) { // should we resize the opposite lane(s) in // order to compensate for the resize operation? - balanced = !(event.originalEvent && event.originalEvent.altKey); + balanced = !hasPrimaryModifier(event); // ensure we have actual pixel values for new bounds // (important when zoom level was > 1 during move)