Open kamov opened 6 years ago
Have the same problem on an actual client site. Just fixed it with the following code: Put the following code at line 57 in jquery.sticky.js:
// Fix height issue on nearly equal height of document and window height
var preventSticky = false;
if ((documentHeight-windowHeight) < 100) {preventSticky = true;}
if (scrollTop <= etse || preventSticky) {
Change the value 100
to whatever you like. Thats the minimum difference of the window and document height in pixels.
Would be great to add this to the options!
When window height is less than sticky wrapper, it's possible to add scrollable sticky wrapper or disable it?
Since at the moment it's not possible to scroll in this case.