Magnific-Popup icon indicating copy to clipboard operation
Magnific-Popup copied to clipboard

iOS/Android - position fixed problem

Open davidemorotti opened this issue 10 years ago • 3 comments

There is any solutions to the known issue of position fixed on mobile browsers?

I created a "Single Page" website that's: http://www.centrofiorediloto.ch

And I have a problem in mobile about how "scrolling" behave. There is any way to make the pop-up windows doesn't fly out the viewport when scrolling?

davidemorotti avatar Oct 11 '13 07:10 davidemorotti

I always thought it's more or less an „it is like it is“ issue. Would be great to hear some feedback!

fdeberle avatar Oct 20 '13 22:10 fdeberle

I "fixed" this by adding the following callbacks to when I initiate magnificPopup()

    callbacks: {
      open: function(){
        $('html').css('overflow-y','hidden');
      },
      close: function(){
        $('html').css('overflow-y','');
      }

NathanPJF avatar Sep 04 '15 18:09 NathanPJF

Now does not work on mobile devices! Body scroll when you scroll popup. Need support plugins to fix position body on open popup.

ios SE

zdimaz avatar May 14 '19 13:05 zdimaz