Merge pull request #6202 from tschaub/animate-zero

Allow animation duration to be zero
This commit is contained in:
Tim Schaub authored and GitHub committed 2016-12-03 10:28:18 -08:00
commit a3f3c24c51
2 files changed
+21 -1

No files matched your search

+1 -1
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
});