Fix KeyboardZoom interation duration option, allow 0 value.

This commit is contained in:
Alexandre Dubé
2015-10-14 14:43:04 -04:00
parent 257313969c
commit b54bc6cd42

View File

@@ -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);