Clément Roche

Results 124 comments of Clément Roche

@sandrodunkel it's open source, if you find a solution I would be super happy to just merge your PR

I see the benefits and i like this philosophy of universality, to not having to care about init/destroy, However i have one concern: `getComputedStyle` function triggers reflow. It means with...

another ressource: https://stackoverflow.com/questions/71033358/why-doesnt-window-getcomputedstyle-invoke-recalculate-styles-and-reflow

Thanks you for your answer @paulirish, in-depth explainations like yours are gold. We wish we could use this native API but it's still not implemented in most of browsers (all...

Ok but you can already do it by creating a new Lenis instances based on data-lenis on page creation. As a developer you have control over content management, how content...

Do you know if your trackpad is sending `wheel` events while using the trackpad ? the answer might be here https://github.com/studio-freight/lenis/blob/main/src/virtual-scroll.js. Actually it would be cool if you can find...

Yes @imbachb I think using `syncTouch` is the way to go for the moment. But I'm also wondering if `scrollTo` should be smooth in this case. So you could use...

This is a good idea however it has an huge impact on performance since it requires `getComputedStyle()`. For that reason i don't want to include it by default in the...

@Myphz PR are always welcome

> Hi @clementroche regarding `rename options correctly (eg: syncTouch -> touch.sync)`, you are talking about renaming and also refactoring the options passed on Lenis instantiation? > > E.G: > >...