We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51a492a commit 91478edCopy full SHA for 91478ed
src/animations/animation.ts
@@ -1016,7 +1016,7 @@ export class Animation {
1016
if (dur < 0) {
1017
dur = this._dur;
1018
}
1019
- this._isAsync = (currentStepValue > 0.05 && currentStepValue < 0.95 && dur > 30);
+ this._isAsync = (dur > 30);
1020
1021
this._progressEnd(shouldComplete, stepValue, dur, this._isAsync);
1022
src/components/menu/menu-types.ts
@@ -59,7 +59,8 @@ export class MenuType {
59
done(isOpen);
60
}, true);
61
62
- let dur = this.ani.getDuration() / (Math.abs(velocity) + 1);
+ let factor = 1 - Math.min(Math.abs(velocity) / 4, 0.7);
63
+ let dur = this.ani.getDuration() * factor;
64
65
this.ani.progressEnd(shouldComplete, currentStepValue, dur);
66
0 commit comments