Fix KeyboardZoom interation duration option, allow 0 value.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user