Scrolling to the end of a menu and then moving the page behind it is a small but constant annoyance.
.modal-body { overflow: auto; overscroll-behavior: contain; }
When an inner scroll area reaches its end, the leftover scroll movement normally passes on to the page underneath. overscroll-behavior: contain keeps it inside the element. The value none goes a step further and also disables effects such as pull to refresh and the bounce on iOS. It only has an effect on elements that can actually scroll, so the box needs a height limit and overflow set to auto or scroll. Safari supports it from version 16.
Further reading: MDN: overscroll-behavior