purtuga/jquery.stickOnScroll — pull request #1 by theshortcut (2013-07-05 19:22:18+00:00)
Title: offsetTop getting doubled causing elements to pop to sticky position early

Since offsetTop is already subtracted out in maxTop, subtracting it out again in the scrollTop check is effectively doubling the offsetTop, causing elements to pop to sticky position early.