Set scrollPastEnd to false.
Open a multi-page document.
Scroll to the bottom.
Select and delete less than a page's worth of lines on the last page. The view will not change (i.e. you will now be scrolled past the end of the file).
Use the mouse-wheel to scroll down. The view scrolls up until you are not past the end of the file.
It would be sweet if the deletion of the lines scrolled the view up so that it doesn't snap later.
I've hacked it right now with:
('scroll 0' doesn't work).