I'm using an html template that has body {height: 100vh;} in the css. When an image is opened in Magnific the webpage in the background jumps to the top of the page. Upon closing the popup, the page is shifted down so the popup link is at the very bottom of the viewport. When "height: 100vh" css is removed, this behavior stops.
It may help to set fixedContentPos: false in the options.
@acemir It works. Thanks.
Most helpful comment
It may help to set
fixedContentPos: falsein the options.