How to deal with "window.scroll in not a function" error?

Hey everyone, recently I tried to use GSAP Scroll Trigger and Locomotive Scroll together in my project. But after I successfully made them work, this error occurred:

window.scroll is not a function

It causes two things:

  1. All my link-buttons connected to sections’ IDs stopped working
  2. Navbar animation when Page is scrolled up/down stopped working

What do I have to change to fix that? Please, help!


Here is my site Read-Only: https://preview.webflow.com/preview/jcfamilyoffice?utm_medium=preview_link&utm_source=designer&utm_content=jcfamilyoffice&preview=f1884b690730a2f3bf4806b2f6bb88c0&workflow=preview

@Daria_Kalinina can you send a published link so I can look at the code live? Thanks.