Prevent scroll of backdrop (on menu open)


We created a small side menu component and noticed that on iOS users can scroll up/down over the backdrop.
I’ve try setting up an event handler for “touchmove” on the backdrop / entire document (document/body) with an e.preventDefault but while the event is being triggered, scrolling is not disabled.

What am I doing wrong? Is there a better way to dynamically disable scroll?


Did you found a way to do this?

I’m facing similar issue, do you found a solution?