chore(modeling): switch to primary modifier for lane expanding
This commit is contained in:
parent
8704d5d5a0
commit
de35cdc6a0
|
@ -4,6 +4,8 @@ var is = require('../../../util/ModelUtil').is;
|
||||||
|
|
||||||
var roundBounds = require('diagram-js/lib/layout/LayoutUtil').roundBounds;
|
var roundBounds = require('diagram-js/lib/layout/LayoutUtil').roundBounds;
|
||||||
|
|
||||||
|
var hasPrimaryModifier = require('diagram-js/lib/util/Mouse').hasPrimaryModifier;
|
||||||
|
|
||||||
var SLIGHTLY_HIGHER_PRIORITY = 1001;
|
var SLIGHTLY_HIGHER_PRIORITY = 1001;
|
||||||
|
|
||||||
|
|
||||||
|
@ -30,7 +32,7 @@ function ResizeLaneBehavior(eventBus, modeling) {
|
||||||
|
|
||||||
// should we resize the opposite lane(s) in
|
// should we resize the opposite lane(s) in
|
||||||
// order to compensate for the resize operation?
|
// 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
|
// ensure we have actual pixel values for new bounds
|
||||||
// (important when zoom level was > 1 during move)
|
// (important when zoom level was > 1 during move)
|
||||||
|
|
Loading…
Reference in New Issue