fix(animations): gesture based animations no longer flicker on slower devices (#19083)

* remove unneeded step

* remove unneeded recursion
This commit is contained in:
Liam DeBeasi
2019-08-13 09:57:50 -04:00
committed by GitHub
parent 94e525c10b
commit ce192713c3

View File

@ -803,7 +803,6 @@ export const createAnimation = () => {
if (supportsWebAnimations) {
forceDirectionValue = undefined;
forceDelayValue = undefined;
progressStep(1);
} else {
/**
@ -823,7 +822,7 @@ export const createAnimation = () => {
if (supportsWebAnimations) {
update();
progressStep(1 - step);
setAnimationStep(1 - step);
} else {
forceDelayValue = ((1 - step) * getDuration()!) * -1;
update(false, false);
@ -834,10 +833,6 @@ export const createAnimation = () => {
forceDurationValue = undefined;
forceDelayValue = undefined;
if (supportsWebAnimations) {
progressStep(1);
}
}, {
oneTime: true
});