angular-ui/ui-utils — pull request #115 by Sixthdim (2013-09-24 15:41:25+00:00)
Title: Element top value now relative to viewport, instead of parent element.

When scrolling past an element, it would seem the top of the element needs to be relative to the viewport and not the parent element. "offsetTop" is relative to parent element, "getBoundingClientRect()" is relative to viewport. Scrolling past the top of the parent element results in the scroll fixed element being fixed prematurely if there is sibling content above it.