perf(content): remove global click listener to improve interaction performance (#24360)

resolves #24359
This commit is contained in:
Liam DeBeasi
2021-12-10 10:34:44 -05:00
committed by GitHub
parent 6309d5ddba
commit 1bfac52331

View File

@ -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);