Allow animation duration to be zero

This commit is contained in:
Tim Schaub
2016-12-02 19:15:34 -08:00
parent fdec14c425
commit dfb4c800b9
2 changed files with 21 additions and 1 deletions

View File

@@ -222,7 +222,7 @@ ol.View.prototype.animate = function(var_args) {
start: start,
complete: false,
anchor: options.anchor,
duration: options.duration || 1000,
duration: options.duration !== undefined ? options.duration : 1000,
easing: options.easing || ol.easing.inAndOut
});