Magnific-Popup
Magnific-Popup copied to clipboard
iOS/Android - position fixed problem
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?
I always thought it's more or less an „it is like it is“ issue. Would be great to hear some feedback!
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','');
}
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