Fix KeyboardZoom interation duration option, allow 0 value.

This commit is contained in:
Alexandre Dubé committed 2015-10-14 14:43:04 -04:00
1 parent 257313969c
commit b54bc6cd42
1 file changed
+1 -1
@@ -50,7 +50,7 @@ ol.interaction.KeyboardZoom = function(opt_options) {
* @private
* @type {number}
*/
this.duration_ = options.duration ? options.duration : 100;
this.duration_ = options.duration !== undefined ? options.duration : 100;
};
goog.inherits(ol.interaction.KeyboardZoom, ol.interaction.Interaction);