mui-scrolljump example project
Source on Github, built from commit: c13f79e51dfe59f1ccfd001556b82d90a48dc48f
Toggling the content before showing the menu, you can see the content stays "stable" and the scrollbar toggles between enabled / disabled.
After showing the menu, toggling the content length makes the content "jump" left and right as the scrollbar toggles between visible/invisible.
Refresh the browser to reset the scrollbar after showing the menu.
content
content
content
content
content