• Prevent the document body from scrolling while an overlay is open, padding for the scrollbar width so the page does not shift. Reference-counted, so nested overlays compose and the original styles are only restored once the last lock is released. Returns a disposer that releases this lock.

    Parameters

    • doc: Document = ...

    Returns Disposer