chore(modeling): switch to primary modifier for lane expanding

This commit is contained in:
Nico Rehwaldt 2015-10-22 20:28:08 +02:00
parent 8704d5d5a0
commit de35cdc6a0
1 changed files with 3 additions and 1 deletions

View File

@ -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)