body-scroll-lock icon indicating copy to clipboard operation
body-scroll-lock copied to clipboard

Keyboard scrolls away from body lock

Open fvonellerts opened this issue 6 years ago • 4 comments

On iPhone and other mobile devices, when the keyboard is opened on an <input> element inside the locked element, the element is scrolled upwards to make space for the keyboard.

When closing the keyboard again, the locked area keeps occupying only half the screen - with no way to scroll up.

fvonellerts avatar Feb 22 '19 15:02 fvonellerts

I have noticed similar issues. Maybe it would be enough to listen for resize events and then update the boundary metrics?

timonkbd avatar Oct 29 '19 14:10 timonkbd

Issue still have in latest version. Any idea to fix it?

dattm97 avatar Dec 18 '20 10:12 dattm97

I have the same issue. I have no idea to fix it. @willmcpo Can you help me please?

dattm97 avatar Dec 21 '20 04:12 dattm97

you can get real areaSize by window.visualViewport in ios13

aizigao avatar Aug 20 '21 05:08 aizigao