Author Topic: How do I know that I reached the end of scroll?  (Read 1723 times)

kiwon34

  • Pro Ultimate
  • Jr. Member
  • *
  • Posts: 52
    • View Profile
How do I know that I reached the end of scroll?
« on: February 13, 2018, 12:13:39 pm »
Hello,

I want to know when I scroll vertically and reach the bottom, is there any event that fires so I can know that it has reached the end?
I know that event is firing during the scroll is moving, but I don't know when it reaches the bottom.  I remember that this kind of event existed on version 4.x.

Thank you.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6309
    • View Profile
Re: How do I know that I reached the end of scroll?
« Reply #1 on: February 13, 2018, 10:43:00 pm »
You may use this method https://paramquery.com/pro/api#method-getViewPortIndx inside scroll event

and compare finalV with last visible rowIndx. If both are equal, then reached the end of scroll.