Scrolling selecting on the 'container' rather than on window. I noticed
this when working on my documentation for
[VariableSky](http://wballard.github.io/VariableSky/) which has multiple
pages and a top nav.
Changed from the 'offset' algorithm to match more closely to the actual
heading elements in real time. This accounts for elements that can and
do change size while running.