Support for pages taller than viewport

Also includes fixes for scrolling on iPad.