Hello
I added lenis smooth scroll to my website, but after that, when I open the editor, I can’t scroll through it. I can scroll on the website normally, but not the editor. I have to use the bar on the right to scroll (Which is making things hard)
Would appreciate anyone helping out, Thanks!
Here is my site Read-Only: Webflow - Haletra
Use this code to solve the editor issue
let lenis; if (Webflow.env(“editor”) === undefined) { lenis = new Lenis({ lerp: 0.1, wheelMultiplier: 0.7, gestureOrientation: “vertical”, normalizeWheel: false, smoothTouch: false }); function raf(time) { lenis.raf(time); requestAnimationFrame(raf); } requestAnimationFrame(raf); }
Thanks man! It works like magic!