locomotivemtl / locomotive-scroll

🛤 Detection of elements in viewport & smooth scrolling with parallax.
https://locomotivemtl.github.io/locomotive-scroll
MIT License
7.56k stars 1.11k forks source link

Ajax loading problem with locomotive scroll #416

Open Azrael83 opened 2 years ago

Azrael83 commented 2 years ago

Hi,

I have an issue with ajax loading and locomotive scroll.

I have page with ajax filter and ajax load more on scroll. The problem is that when i use the filter or the load more on scroll, the page doesn't resize well, for exemple the footer is cut you can't scroll to the end of the page or if the ajax result show less elements than on initial page, the page become too long and you can scroll below footer.

The problem is fix when you resize the window a little. I think the solution maybe is to update locomotive scroll when ajax is use, but i don't know if it will fix my problem, and i don't know where i need to put the update code if it is the solution.

thanks a lot for help

Here is the page in question (not finished): http://bormani.rdcl-studio.fr/nos-vins/

Toyoudo commented 2 years ago

@Azrael83 I found a temporary solution, hope it will help you #432