We're working on a new project that use Lenis under the hood. 🧈 We're currently seeing a use case where we'd like to disable Lenis on a specific element, but only for touch devices: we have a draggable card component on the page and it's conflicting with the touch events.
Idea of this PR is to add support for both data-lenis-prevent-wheel and data-lenis-prevent-touch, additional to the global data-lenis-prevent that will block both.
Let me know if there's anything I need to do for the build/package version? 👀
Would love to see this feature shipped on Lenis.
Hey there!
We're working on a new project that use Lenis under the hood. 🧈 We're currently seeing a use case where we'd like to disable Lenis on a specific element, but only for touch devices: we have a draggable card component on the page and it's conflicting with the touch events.
Idea of this PR is to add support for both
data-lenis-prevent-wheel
anddata-lenis-prevent-touch
, additional to the globaldata-lenis-prevent
that will block both.Let me know if there's anything I need to do for the build/package version? 👀 Would love to see this feature shipped on Lenis.
Cheers!