Skip to content

Commit fd1b44a

Browse files
authored
fix(content): only emit scroll events if enabled (#20401)
1 parent 916f667 commit fd1b44a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/components/content/content.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ export class Content implements ComponentInterface {
329329
'overscroll': (scrollX || scrollY) && forceOverscroll
330330
}}
331331
ref={el => this.scrollEl = el!}
332-
onScroll={ev => this.onScroll(ev)}
332+
onScroll={(this.scrollEvents) ? ev => this.onScroll(ev) : undefined}
333333
>
334334
<slot></slot>
335335
</main>

0 commit comments

Comments
 (0)