diff --git a/src/ol/interaction/interaction.js b/src/ol/interaction/interaction.js index 07cbff4518..be0aa3cbfd 100644 --- a/src/ol/interaction/interaction.js +++ b/src/ol/interaction/interaction.js @@ -222,6 +222,7 @@ ol.interaction.Interaction.zoomWithoutConstraints = var currentResolution = view.getResolution(); var currentCenter = view.getCenter(); if (currentResolution !== undefined && currentCenter && + resolution !== currentResolution && opt_duration && opt_duration > 0) { map.beforeRender(ol.animation.zoom({ resolution: /** @type {number} */ (currentResolution),