Avoid duplicate property lookup

This commit is contained in:
Tom Payne
2013-04-22 14:28:14 +02:00
parent f2836ea111
commit eb9f6c027b

View File

@@ -46,8 +46,7 @@ ol.interaction.DblClickZoom.prototype.handleMapBrowserEvent =
mapBrowserEvent.isMouseActionButton()) {
var map = mapBrowserEvent.map;
var anchor = mapBrowserEvent.getCoordinate();
var delta = mapBrowserEvent.browserEvent.shiftKey ?
-this.delta_ : this.delta_;
var delta = browserEvent.shiftKey ? -this.delta_ : this.delta_;
// FIXME works for View2D only
var view = map.getView().getView2D();
ol.interaction.Interaction.zoomByDelta(map, view, delta, anchor,