You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 15, 2018. It is now read-only.
the css-function of jquery uses the browsers getComputedStyle-function and this function now (correctly) returns the computed value, not the actual value that is set in the stylesheet.
I can see the broken behaviour in Chrome 51, 52 (Beta) and 53 (Canary), but it is still working as intended in Chrome 50 (OS X). @macrozone workaround is currently resolving the issue.
Hi there,
The polyfill does not work correctly anymore on Chrome 52.
It starts to fix the element on top when you scroll down, but does not release it when you scroll up.
What I found out so far is that the polyfill uses jquery's css-function to get the top and bottom-values and check if these values are "auto" (see https://github.com/filamentgroup/fixed-sticky/blob/master/fixedsticky.js#L93)
the css-function of jquery uses the browsers getComputedStyle-function and this function now (correctly) returns the computed value, not the actual value that is set in the stylesheet.
So this line above (https://github.com/filamentgroup/fixed-sticky/blob/master/fixedsticky.js#L93) will always yield position = {top: true, bottom: true} .
Later
isFixedToBottom
will return true because of this and this leads to the problem.I don't know how to actually fix it yet, but maybe someone has an idea.
The text was updated successfully, but these errors were encountered: