The Center Image in Window command scrolls the image so that it is exactly centered in the window.
You can access this command from the main menu through View → Center Image in Window,
or by using the keyboard shortcut Shift+J.