# I cannot get scroll event from my ion-content

**URL:** <https://forum.ionicframework.com/t/i-cannot-get-scroll-event-from-my-ion-content/193683>\
**Category:** Ionic Framework\
**Created:** [July 30, 2020, 8:58am UTC](https://forum.ionicframework.com/t/i-cannot-get-scroll-event-from-my-ion-content/193683 "2020-07-30T08:58:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kk-at-cbx](https://avatars.discourse-cdn.com/v4/letter/k/8dc957/32.png) [@kk-at-cbx](https://forum.ionicframework.com/u/kk-at-cbx)\
**Post date:** [July 30, 2020, 8:58am UTC](https://forum.ionicframework.com/t/i-cannot-get-scroll-event-from-my-ion-content/193683/1 "2020-07-30T08:58:52Z")

</div>

I have hooked the event` (ionScroll)` of my `ion-content` but nothing happened when I scroll.

However when I inspect my page and found the shadow element inside `ion-content` with tag:  
`<main class="inner-scroll scroll-y">` have `scrollTop` value.

How can I get the `scrollTop` value from the shadow element` <main>` in my `page.ts`?

So there are two problems:

1. no scroll even emitted from `ion-content`
2. I want to get the shadow element in typescript.

PS. I am using Ionic 5

Thanks

---

<div class="post-metadata">

**Author:** ![EinfachHans](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/einfachhans/32/130917_2.png) [@EinfachHans](https://forum.ionicframework.com/u/EinfachHans)\
**Post date:** [July 30, 2020, 12:08pm UTC](https://forum.ionicframework.com/t/i-cannot-get-scroll-event-from-my-ion-content/193683/2 "2020-07-30T12:08:11Z")

</div>

You need to enable the Scroll Events, which are disabled by default. Add `[scrollEvents]="true"` to your Content
