mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-21 04:53:58 +08:00
perf(content): remove global click listener to improve interaction performance (#24360)
resolves #24359
This commit is contained in:
@ -119,14 +119,6 @@ export class Content implements ComponentInterface {
|
|||||||
this.resize();
|
this.resize();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Listen('click', { capture: true })
|
|
||||||
onClick(ev: Event) {
|
|
||||||
if (this.isScrolling) {
|
|
||||||
ev.preventDefault();
|
|
||||||
ev.stopPropagation();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private shouldForceOverscroll() {
|
private shouldForceOverscroll() {
|
||||||
const { forceOverscroll } = this;
|
const { forceOverscroll } = this;
|
||||||
const mode = getIonMode(this);
|
const mode = getIonMode(this);
|
||||||
|
Reference in New Issue
Block a user