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) {
|
||||
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
|
||||
});
|
||||
|
Reference in New Issue
Block a user