mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
perf(animation): reduce flickering when updating css animation on lower end devices (#19138)
* fix flickering on lower end devices * fix flickering, reduce timeout padding * Add raf for clean up * bug fix * ensure animations are cleaned up * Revert "ensure animations are cleaned up" Thie reverts commit cf363f00be5567ba346d68659211087c8848d0d4. * fix dependnecy * Revert "ensure animations are cleaned up" merge This reverts commit cf363f00be5567ba346d68659211087c8848d0d4.
This commit is contained in:
@ -415,7 +415,7 @@ export class Menu implements ComponentInterface, MenuI {
|
||||
let realDur = 0;
|
||||
if (missingDistance > 5) {
|
||||
const dur = missingDistance / Math.abs(velocity);
|
||||
realDur = Math.min(dur, 300);
|
||||
realDur = Math.max(dur, 300);
|
||||
}
|
||||
|
||||
this.lastOnEnd = detail.timeStamp;
|
||||
|
Reference in New Issue
Block a user