# $ionicScrollDelegate doesn't have a onScroll event?

**URL:** <https://forum.ionicframework.com/t/ionicscrolldelegate-doesnt-have-a-onscroll-event/19497>\
**Category:** uncategorized\
**Created:** [March 21, 2015, 5:54pm UTC](https://forum.ionicframework.com/t/ionicscrolldelegate-doesnt-have-a-onscroll-event/19497 "2015-03-21T17:54:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![felquis](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/felquis/32/64844_2.png) [@felquis](https://forum.ionicframework.com/u/felquis)\
**Post date:** [March 21, 2015, 5:54pm UTC](https://forum.ionicframework.com/t/ionicscrolldelegate-doesnt-have-a-onscroll-event/19497/1 "2015-03-21T17:54:31Z")

</div>

I would like to use `on-scroll` event, but not using the [`on-scroll` attribute](http://ionicframework.com/docs/api/directive/ionScroll/), is there someway to do this?

Something like:

```auto
$ionicScrollDelegate.$on('onScroll', function (data) {
  console.log(data.position.top); // etc...
});

```

Or using $scope…

```auto
$scope.$on('ionicView.onScroll', function (data) {
  console.log(data.position.top); // etc...
});

```

Thanks.

---

<div class="post-metadata">

**Author:** ![felquis](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/felquis/32/64844_2.png) [@felquis](https://forum.ionicframework.com/u/felquis)\
**Post date:** [March 21, 2015, 6:08pm UTC](https://forum.ionicframework.com/t/ionicscrolldelegate-doesnt-have-a-onscroll-event/19497/2 "2015-03-21T18:08:38Z")

</div>

I solved this using:

```auto
$ionicScrollDelegate.getScrollView().onScroll = function () {
  console.log($ionicScrollDelegate.getScrollPosition());
});

```

Would be great if these function of `getScrollView()` as `onScroll` was documented.

Thanks 😃

---

<div class="post-metadata">

**Author:** ![vicmota](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/vicmota/32/96232_2.png) [@vicmota](https://forum.ionicframework.com/u/vicmota)\
**Post date:** [March 23, 2015, 12:18pm UTC](https://forum.ionicframework.com/t/ionicscrolldelegate-doesnt-have-a-onscroll-event/19497/3 "2015-03-23T12:18:46Z")

</div>

`Improve this doc` [https://github.com/driftyco/ionic/edit/master/js/angular/service/scrollDelegate.js#L2](https://github.com/driftyco/ionic/edit/master/js/angular/service/scrollDelegate.js#L2)

---

<div class="post-metadata">

**Author:** ![Corvi](https://avatars.discourse-cdn.com/v4/letter/c/e9c0ed/32.png) [@Corvi](https://forum.ionicframework.com/u/Corvi)\
**Post date:** [January 18, 2016, 1:01am UTC](https://forum.ionicframework.com/t/ionicscrolldelegate-doesnt-have-a-onscroll-event/19497/4 "2016-01-18T01:01:02Z")

</div>

> [@felquis](#):
>
> $ionicScrollDelegate.getScrollView().onScroll

unfortunately this has stopped working with I think 1.2.4. (works for sure with 1.1.1). it still works in desktop browser, but no longer on an android phone.

anyone got a solution?
