Window Height when sticky
Closed this issue · 1 comments
davist11 commented
If you get a piece of content to stick and then resize the window smaller than that content, it looks like it gets caught being sticky forever.
alberizo commented
I solved this issue with these lines, so is normal scroll and you can see all sticky content
if(_self.windowHeight > item.elemHeight) {
. . .
}else{
item.$elem.removeClass(_self.config.stickClass)
item.$elem.removeClass(_self.config.endStickClass)
}