.scrollHeight
.scrollWidth
We were using the viewport's size as the viewport scrolling area, but those are completely different things.