Prevented the page from scrolling to the top while opening a popup.