Skip to content

Commit

Permalink
perf(content): remove global click listener to improve interaction pe…
Browse files Browse the repository at this point in the history
…rformance (#24360)

resolves #24359
  • Loading branch information
liamdebeasi authored Dec 10, 2021
1 parent 6309d5d commit 1bfac52
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions core/src/components/content/content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,14 +119,6 @@ export class Content implements ComponentInterface {
this.resize();
}

@Listen('click', { capture: true })
onClick(ev: Event) {
if (this.isScrolling) {
ev.preventDefault();
ev.stopPropagation();
}
}

private shouldForceOverscroll() {
const { forceOverscroll } = this;
const mode = getIonMode(this);
Expand Down

0 comments on commit 1bfac52

Please sign in to comment.