Skip to content

Commit

Permalink
Remove DragZoom from default interactions
Browse files Browse the repository at this point in the history
As it only works with canvas renderer.
  • Loading branch information
tonio committed Dec 20, 2013
1 parent adfe20d commit c2330b9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
2 changes: 0 additions & 2 deletions src/objectliterals.jsdoc
Original file line number Diff line number Diff line change
Expand Up @@ -342,8 +342,6 @@
* desired. Default is `true`.
* @property {boolean|undefined} mouseWheelZoom Whether mousewheel zoom is
* desired. Default is `true`.
* @property {boolean|undefined} shiftDragZoom Whether Shift-drag zoom is
* desired. Default is `true`.
* @property {boolean|undefined} touchPan Whether touch pan is
* desired. Default is `true`.
* @property {boolean|undefined} touchRotate Whether touch rotate is desired. Default is `true`.
Expand Down
7 changes: 0 additions & 7 deletions src/ol/interaction/interactiondefaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ goog.require('ol.Kinetic');
goog.require('ol.interaction.DoubleClickZoom');
goog.require('ol.interaction.DragPan');
goog.require('ol.interaction.DragRotate');
goog.require('ol.interaction.DragZoom');
goog.require('ol.interaction.KeyboardPan');
goog.require('ol.interaction.KeyboardZoom');
goog.require('ol.interaction.MouseWheelZoom');
Expand Down Expand Up @@ -99,12 +98,6 @@ ol.interaction.defaults = function(opt_options) {
}));
}

var shiftDragZoom = goog.isDef(options.shiftDragZoom) ?
options.shiftDragZoom : true;
if (shiftDragZoom) {
interactions.push(new ol.interaction.DragZoom());
}

return interactions;

};

0 comments on commit c2330b9

Please sign in to comment.