I will try ti keep it as simple as possible! This is my first time using locomotive scroll while I am testing my code out I am not able to scroll all the way below. The scroll bar is visible but but I am not able to scroll or drag it using the mouse. I seriously spend hours to find
Tag: locomotive-scroll
How to correctly use Locomotive Scroll with Next.js routing?
I’m using locomotive-scroll with Next.js and all working fine. But after route to a different page, my scroll won’t destroy and 2 scrolls overlap each other. How to correctly reinit locomotive-scroll in Next.js after route? My code example: Answer You should move the scroll.destroy call to the cleanup phase of the useEffect. You also don’t need to explicitly call scroll.init().
Can’t update my mouse position, because of my horizontal scroll (LocomotiveScroll)
I’m trying to make a custom cursor with the Ink Cursor by Ricardo Mendieta. https://codepen.io/mendieta/pen/WgvENJ The cursor is working, but the problem I have is that I use a horizontal scroll with Locomotive Scroll. When I scroll, the mouse position doesn’t get updated. I tried to fix this with a mousewheel function. I can console log the mousewheel event, but