# $ionicScrollDelegate an bottom of the scroll

**URL:** <https://forum.ionicframework.com/t/ionicscrolldelegate-an-bottom-of-the-scroll/27571>\
**Category:** uncategorized\
**Created:** [July 2, 2015, 5:13pm UTC](https://forum.ionicframework.com/t/ionicscrolldelegate-an-bottom-of-the-scroll/27571 "2015-07-02T17:13:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![andoni](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/andoni/32/68966_2.png) [@andoni](https://forum.ionicframework.com/u/andoni)\
**Post date:** [July 2, 2015, 5:13pm UTC](https://forum.ionicframework.com/t/ionicscrolldelegate-an-bottom-of-the-scroll/27571/1 "2015-07-02T17:13:33Z")

</div>

Hi all,  
I have a ion-modal-view with a ion-content inside and i wanna know if the user reach the bottom of the scroll to enable a button, but I dont see the proper way to implement this…

In my directive I have this code:

scope.checkBottomReached = function() {  
var contentDelegate = $ionicScrollDelegate.$getByHandle(‘contentHandler’);  
…  
};

I can check there the contentDelegate.getScrollPosition().top and everything looks right but I dont know how to check if the bottom is has been reached…

Am I missing something??

Cheers  
Andoni

---

<div class="post-metadata">

**Author:** ![simrankaur](https://avatars.discourse-cdn.com/v4/letter/s/2acd7d/32.png) [@simrankaur](https://forum.ionicframework.com/u/simrankaur)\
**Post date:** [October 30, 2015, 8:58pm UTC](https://forum.ionicframework.com/t/ionicscrolldelegate-an-bottom-of-the-scroll/27571/2 "2015-10-30T20:58:48Z")

</div>

$ionicScrollDelegate does not really offer a ready to use method to check that.

Here is how you do it in Ionic using `_maxScrollTop`.

[http://www.yourtechchick.com/how-to-detect-scroll-end-event-in-ionic-to-check-if-user-scrolled-to-bottom-of-the-screen/](http://www.yourtechchick.com/how-to-detect-scroll-end-event-in-ionic-to-check-if-user-scrolled-to-bottom-of-the-screen/)

Hope that helps.
