mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
fix(content): only emit scroll events if enabled (#20401)
This commit is contained in:
@ -329,7 +329,7 @@ export class Content implements ComponentInterface {
|
|||||||
'overscroll': (scrollX || scrollY) && forceOverscroll
|
'overscroll': (scrollX || scrollY) && forceOverscroll
|
||||||
}}
|
}}
|
||||||
ref={el => this.scrollEl = el!}
|
ref={el => this.scrollEl = el!}
|
||||||
onScroll={ev => this.onScroll(ev)}
|
onScroll={(this.scrollEvents) ? ev => this.onScroll(ev) : undefined}
|
||||||
>
|
>
|
||||||
<slot></slot>
|
<slot></slot>
|
||||||
</main>
|
</main>
|
||||||
|
Reference in New Issue
Block a user