Use the delta from goog.events.MouseWheelHandler as-is
This commit is contained in:
@@ -83,7 +83,7 @@ ol.interaction.MouseWheelZoom.prototype.handleMapBrowserEvent =
|
|||||||
goog.asserts.assertInstanceof(mouseWheelEvent, goog.events.MouseWheelEvent);
|
goog.asserts.assertInstanceof(mouseWheelEvent, goog.events.MouseWheelEvent);
|
||||||
|
|
||||||
this.lastAnchor_ = mapBrowserEvent.coordinate;
|
this.lastAnchor_ = mapBrowserEvent.coordinate;
|
||||||
this.delta_ += mouseWheelEvent.deltaY / 3;
|
this.delta_ += mouseWheelEvent.deltaY;
|
||||||
|
|
||||||
if (!goog.isDef(this.startTime_)) {
|
if (!goog.isDef(this.startTime_)) {
|
||||||
this.startTime_ = goog.now();
|
this.startTime_ = goog.now();
|
||||||
|
|||||||
Reference in New Issue
Block a user