fix(animation): add cubic-bezier conversions for gesture animations (#19134)

* enable linear easing switch on progressEnd

* Add easing to menu

* remove console log

* Add tests

* clean up code

* update comments
This commit is contained in:
Liam DeBeasi
2019-08-19 13:18:49 -04:00
committed by GitHub
parent fd65765bdf
commit 5a2c441b3c
7 changed files with 226 additions and 6 deletions

View File

@ -787,6 +787,8 @@ export const createAnimation = () => {
};
const progressEnd = (shouldComplete: boolean, step: number, dur: number | undefined) => {
shouldForceLinearEasing = false;
childAnimations.forEach(animation => {
animation.progressEnd(shouldComplete, step, dur);
});
@ -796,7 +798,7 @@ export const createAnimation = () => {
}
finished = false;
shouldForceLinearEasing = false;
willComplete = shouldComplete;
if (!shouldComplete) {