mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
perf(ripple): remove ripple w/in rAF
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import {Activator} from './activator';
|
||||
import {removeElement} from '../../util/dom';
|
||||
import {removeElement, raf} from '../../util/dom';
|
||||
import {Animation} from '../../animations/animation';
|
||||
|
||||
|
||||
@@ -93,9 +93,9 @@ export class RippleActivator extends Activator {
|
||||
forceComplete ||
|
||||
parseInt(rippleId) + 5000 < Date.now()) {
|
||||
// finished expanding and the user has lifted the pointer
|
||||
setTimeout(() => {
|
||||
raf(() => {
|
||||
this.remove(rippleId);
|
||||
}, 0);
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user