]> _ Git - fluidbook-html5.git/commitdiff
#2664
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 4 Apr 2019 16:46:58 +0000 (18:46 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 4 Apr 2019 16:46:58 +0000 (18:46 +0200)
js/libs/fluidbook/fluidbook.links.js

index 3b72e4931d3bf0e6f498241de07ee6e4f40d831b..aa008ae7839ca64c1636be4ccd15f636d760e334 100644 (file)
@@ -370,7 +370,7 @@ FluidbookLinks.prototype = {
                     prefix: animation.prefix,
                     suffix: animation.suffix,
                     easingFn: function (t, b, c, d) {
-                        return b + ease.getRatio(t / d) * c
+                        return b + ease.getRatio(Math.min(1, Math.max(0, t / d))) * c;
                     }
                 };