jonleighton/poltergeist — pull request #100 by sobrinho (2012-07-07 15:53:19+00:00)
Title: Scroll element into view if needed on click

This closes #83 and possibly #85 and #88.

Seems like modern browsers implements the `element.scrollIntoView` to do what the method name says :)

`element.scrollIntoViewIfNeeded`, implemented in webkit, not sure about others browsers, do the same but in a more strictly way.

It scrolls only the needed parent nodes and not every parent node like `element.scrollIntoView` does.

See: https://developer.mozilla.org/en/DOM/element.scrollIntoView