Bug 232239 - Viewport offset after soft keyboard dismiss on PWA on iPad
Summary: Viewport offset after soft keyboard dismiss on PWA on iPad
Status: RESOLVED MOVED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: Safari 15
Hardware: iPhone / iPad Other
: P2 Critical
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-10-25 06:44 PDT by KEn
Modified: 2022-09-08 01:38 PDT (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description KEn 2021-10-25 06:44:10 PDT
There is an unexpected and extremly unpleasant behavior of the WebKit Web View on iPad Pro (9.7 inch) OS 15.0.2 we experienced in one of our Customers PWA. Unfortunately the Bug only appears when the App is installed on the Homescreen but not in any of the available Browsers (which all use WebKit engine on iPad OS) like Chrome or Firefox.

I created a demo repository in order to demonstrate the case in detail: https://github.com/engek1/keyboard-bug

Steps to reproduce the Problem:

1. open the example site (https://engek1.github.io/keyboard-bug/index.html) in Safari on your iPad with iOS 15
2. add the Page to the Homescreen (PWA) and open it
3. type anything into one of the Input fields on the lower part of the page (e.g. into Nr. 7)
4. then close the Soft Keyboard on your iPad with the 'close Keyboard' Button
5. try to click (without scrolling or anything) into Input field Nr. 1 for example
6. Then it comes; instead of Input Nr. 1, any of the Input Fields underneath will gain focus, for example Nr. 2 or 3 (not constantly the same)

I guess the View Port is shifted somehow when the soft keyboard dismiss. The effect is that the wrong Elements gain the User Input events.
Comment 1 Radar WebKit Bug Importer 2021-10-25 11:45:58 PDT
<rdar://problem/84623646>
Comment 2 Brent Fulgham 2022-02-10 10:11:28 PST
The fix for this issue was needed outside the WebKit project, therefore this is being resolved as 'Moved'.

This issue should be fixed now in iOS 15.2.
Comment 3 mplutka 2022-09-08 01:38:27 PDT
This issue is not fixed in iPadOS 16.1