mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
perf(ripple): prevents jank by using raf
This commit is contained in:
@ -410,8 +410,7 @@ export class Menu {
|
||||
* @private
|
||||
*/
|
||||
setOpen(shouldOpen: boolean, animated: boolean = true): Promise<boolean> {
|
||||
// _isPrevented is used to prevent unwanted opening/closing after swiping open/close
|
||||
// or swiping open the menu while pressing down on the MenuToggle button
|
||||
// If the menu is disabled or it is currenly being animated, let's do nothing
|
||||
if ((shouldOpen === this.isOpen) || !this._isEnabled || this._isAnimating) {
|
||||
return Promise.resolve(this.isOpen);
|
||||
}
|
||||
|
@ -15,7 +15,6 @@ export class RippleActivator implements ActivatorBase {
|
||||
|
||||
constructor(app: App, config: Config) {
|
||||
this.highlight = new Activator(app, config);
|
||||
this.highlight.activatedDelay = 0;
|
||||
}
|
||||
|
||||
clickAction(ev: UIEvent, activatableEle: HTMLElement, startCoord: PointerCoordinates) {
|
||||
|
Reference in New Issue
Block a user