Answer the question
In order to leave comments, you need to log in
How to make friends overflow:hidden in Safari on iOS?
The overflow:hidden hangs on the body, which, as I read, does not work in ios safari.
There is a modal window, position:fixed.
Everywhere everything is fine, but on i-devices the page scrolls under the modal.
How to overcome it?
Answer the question
In order to leave comments, you need to log in
Partially helped me for modal window-webkit-overflow-scrolling: touch;
The problem is that mobile safari ignores overflow:hidden on body.
"Today" the most effective way to fight is to simply block the propagation of events that can cause scrolling into the document.
In general - https://github.com/thearnica/dom-locky
The problem is that body cannot be set to position. So you need to wrap the entire site in a specific tag, for example wrapper, and add overflow: hidden; height: 100vh; position: relative; In this case, everything will work. Tested on mobile devices in the Safari browser.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question