Merge pull request #1789 from ahocevar/mousewheel-delta
Mousewheel zoom broken and resolution constraints not respected in Firefox
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