Does anybody know the best way to stop the background page from scrolling when a popup is opened? Whenever my popup requires scrolling within it, its very easy to also scroll the background page and move the popup window. Ideally I would like to lock the popup in the centre of the screen and only scroll within the active window.
What you want is unfortunately not possible. The pop-up is part of the parent's screen window, and scrolls along with it.
Easy fix, throw this inside your application