A
A
Andrey Borchik2018-03-22 18:51:46
css
Andrey Borchik, 2018-03-22 18:51:46

How to fix cursor bug in IOS11 on mobile?

How to fix cursor bug in IOS11 on mobile?
Applied this style when opening a pop-up window to body

.show-modal {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
}

But now when you open the form on PC and Mobile, the site scrolls to the very top?
How to make the site screen stay in the same position when opening a modal window?
website - Arthata.by

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
mrSeller, 2018-03-22
@mrSeller

Calculate the page scroll and set the content offset according to this value
I like to set ramps for the disabled Safari

F
fl3nkey, 2018-03-22
@FLUNKEY

This is because of position: fixed; .
You can use the fix-scroll library to work with native scrolling.
Also read the section Preventing , it describes the problem and solutions with scrolling in iOS.

F
Froggyweb, 2018-03-22
@Froggyweb

Scrolls the link on which
Klinkuli.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question