mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
fix(animations): gesture based animations no longer flicker on slower devices (#19083)
* remove unneeded step * remove unneeded recursion
This commit is contained in:
@ -803,7 +803,6 @@ export const createAnimation = () => {
|
|||||||
if (supportsWebAnimations) {
|
if (supportsWebAnimations) {
|
||||||
forceDirectionValue = undefined;
|
forceDirectionValue = undefined;
|
||||||
forceDelayValue = undefined;
|
forceDelayValue = undefined;
|
||||||
progressStep(1);
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -823,7 +822,7 @@ export const createAnimation = () => {
|
|||||||
|
|
||||||
if (supportsWebAnimations) {
|
if (supportsWebAnimations) {
|
||||||
update();
|
update();
|
||||||
progressStep(1 - step);
|
setAnimationStep(1 - step);
|
||||||
} else {
|
} else {
|
||||||
forceDelayValue = ((1 - step) * getDuration()!) * -1;
|
forceDelayValue = ((1 - step) * getDuration()!) * -1;
|
||||||
update(false, false);
|
update(false, false);
|
||||||
@ -834,10 +833,6 @@ export const createAnimation = () => {
|
|||||||
|
|
||||||
forceDurationValue = undefined;
|
forceDurationValue = undefined;
|
||||||
forceDelayValue = undefined;
|
forceDelayValue = undefined;
|
||||||
|
|
||||||
if (supportsWebAnimations) {
|
|
||||||
progressStep(1);
|
|
||||||
}
|
|
||||||
}, {
|
}, {
|
||||||
oneTime: true
|
oneTime: true
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user