From bd4b7a890df641f53c73f1b6412b7fcbbe444584 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandre=20Dub=C3=A9?= Date: Wed, 14 Oct 2015 13:39:10 -0400 Subject: [PATCH] Fix DragZoom interaction duration, allow `0` value --- src/ol/interaction/dragzoominteraction.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ol/interaction/dragzoominteraction.js b/src/ol/interaction/dragzoominteraction.js index a5e7a2f75e..96bdc04ce5 100644 --- a/src/ol/interaction/dragzoominteraction.js +++ b/src/ol/interaction/dragzoominteraction.js @@ -32,7 +32,7 @@ ol.interaction.DragZoom = function(opt_options) { * @private * @type {number} */ - this.duration_ = options.duration ? options.duration : 200; + this.duration_ = options.duration !== undefined ? options.duration : 200; /** * @private