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: Webflow - JC Capital Family Office

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