Skip to content

Commit

Permalink
Use the delta from goog.events.MouseWheelHandler as-is
Browse files Browse the repository at this point in the history
  • Loading branch information
ahocevar committed Mar 13, 2014
1 parent 9f1b695 commit 44e0f6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ol/interaction/mousewheelzoominteraction.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ ol.interaction.MouseWheelZoom.prototype.handleMapBrowserEvent =
goog.asserts.assertInstanceof(mouseWheelEvent, goog.events.MouseWheelEvent);

this.lastAnchor_ = mapBrowserEvent.coordinate;
this.delta_ += mouseWheelEvent.deltaY / 3;
this.delta_ += mouseWheelEvent.deltaY;

if (!goog.isDef(this.startTime_)) {
this.startTime_ = goog.now();
Expand Down

0 comments on commit 44e0f6c

Please sign in to comment.