I need to have some help with an annoying thing. I have an modal popup which has vertical scrollsbar inside. When scrolling inside the modal sometimes the background scrolls instead. I have tried to add
body{
position:relative;
overflow: hidden;
}
which works fine on most of the browsers, but Safari for my iPhone still scrolls!
Please help me find how to solve this!
Regards Kristian
$('body').css('overflow','hidden');
$('body').css('position','fixed');
Did it for me.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With