diff --git a/src/ol/control/zoomcontrol.js b/src/ol/control/zoomcontrol.js index deae59a0aa..c963b41032 100644 --- a/src/ol/control/zoomcontrol.js +++ b/src/ol/control/zoomcontrol.js @@ -71,7 +71,7 @@ ol.control.Zoom = function(opt_options) { * @type {number} * @private */ - this.duration_ = options.duration ? options.duration : 250; + this.duration_ = options.duration !== undefined ? options.duration : 250; }; goog.inherits(ol.control.Zoom, ol.control.Control);