Skip to content

Commit

Permalink
fix(content): only emit scroll events if enabled (#20401)
Browse files Browse the repository at this point in the history
  • Loading branch information
liamdebeasi authored Feb 7, 2020
1 parent 916f667 commit fd1b44a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/components/content/content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ export class Content implements ComponentInterface {
'overscroll': (scrollX || scrollY) && forceOverscroll
}}
ref={el => this.scrollEl = el!}
onScroll={ev => this.onScroll(ev)}
onScroll={(this.scrollEvents) ? ev => this.onScroll(ev) : undefined}
>
<slot></slot>
</main>
Expand Down

0 comments on commit fd1b44a

Please sign in to comment.