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