Fix non-view-related typecasts in interactions

This commit is contained in:
Tom Payne
2013-01-07 13:08:30 +01:00
parent 0653546e44
commit e52ec0f7a2
5 changed files with 5 additions and 5 deletions

View File

@@ -32,7 +32,7 @@ ol.interaction.MouseWheelZoom.prototype.handleMapBrowserEvent =
goog.events.MouseWheelHandler.EventType.MOUSEWHEEL) {
var map = mapBrowserEvent.map;
var mouseWheelEvent = /** @type {goog.events.MouseWheelEvent} */
mapBrowserEvent.browserEvent;
(mapBrowserEvent.browserEvent);
goog.asserts.assert(mouseWheelEvent instanceof goog.events.MouseWheelEvent);
var anchor = mapBrowserEvent.getCoordinate();
var delta = mouseWheelEvent.deltaY < 0 ? this.delta_ : -this.delta_;