Use the delta from goog.events.MouseWheelHandler as-is
This commit is contained in:
1 parent
9f1b695747
commit
44e0f6ce68
1 file changed
+1
-1
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user