Import events conditions explicitly

This commit is contained in:
Marc Jansen
2018-02-05 18:22:42 +01:00
parent 1c8e60487c
commit 6e764a20b3
16 changed files with 54 additions and 69 deletions
+2 -3
View File
@@ -3,7 +3,7 @@
*/
import {inherits} from '../index.js';
import {easeOut} from '../easing.js';
import _ol_events_condition_ from '../events/condition.js';
import {shiftKeyOnly} from '../events/condition.js';
import {createOrUpdateFromCoordinates, getBottomLeft, getCenter, getTopRight, scaleFromCenter} from '../extent.js';
import DragBox from '../interaction/DragBox.js';
@@ -24,8 +24,7 @@ import DragBox from '../interaction/DragBox.js';
const DragZoom = function(opt_options) {
const options = opt_options ? opt_options : {};
const condition = options.condition ?
options.condition : _ol_events_condition_.shiftKeyOnly;
const condition = options.condition ? options.condition : shiftKeyOnly;
/**
* @private