- Fixed bug with the event `onLeave` which was returning a wrong index when scrolling up.