Fix scroll-last scrolling backwards in certain cases.