Add ability to scroll past the end of the file

Fixes #3592