darkroomengineering / lenis

How smooth scroll should be
https://lenis.darkroom.engineering
MIT License
7.35k stars 315 forks source link

Scrolling does not work in native dialog boxes #270

Closed Blakeinstein closed 7 months ago

Blakeinstein commented 7 months ago

Describe the bug Upon showing a dialog, lenis continues to scroll the top layer

To Reproduce https://svelte.dev/repl/0444f20c2d97446a9fcc0bb6627a8886

Since I am using svelte, I have a REPL ready to reproduce this behaviour.

clementroche commented 7 months ago

https://github.com/studio-freight/lenis#nested-scroll