Fix longscroll.js scrollIntoView issue.

This was sometimes causing a positioning/reflow problem in WebKit
browsers.