Avoid duplicate property lookup
This commit is contained in:
@@ -46,8 +46,7 @@ ol.interaction.DblClickZoom.prototype.handleMapBrowserEvent =
|
|||||||
mapBrowserEvent.isMouseActionButton()) {
|
mapBrowserEvent.isMouseActionButton()) {
|
||||||
var map = mapBrowserEvent.map;
|
var map = mapBrowserEvent.map;
|
||||||
var anchor = mapBrowserEvent.getCoordinate();
|
var anchor = mapBrowserEvent.getCoordinate();
|
||||||
var delta = mapBrowserEvent.browserEvent.shiftKey ?
|
var delta = browserEvent.shiftKey ? -this.delta_ : this.delta_;
|
||||||
-this.delta_ : this.delta_;
|
|
||||||
// FIXME works for View2D only
|
// FIXME works for View2D only
|
||||||
var view = map.getView().getView2D();
|
var view = map.getView().getView2D();
|
||||||
ol.interaction.Interaction.zoomByDelta(map, view, delta, anchor,
|
ol.interaction.Interaction.zoomByDelta(map, view, delta, anchor,
|
||||||
|
|||||||
Reference in New Issue
Block a user