KakaoBank Resolves Mobile WebView iOS and Android Virtual Keyboard Screen Shift Issue with VirtualViewport
·2026.10.14 19:51
Key point
KakaoBank resolved mobile WebView keyboard UI issues by using a VirtualViewport component that synchronizes the visual viewport height.
Details
- Resolved iOS screen shifting and Android input field obscuring issues caused by the operational differences between the layout viewport and the visual viewport
- Polled visualViewport.height using requestAnimationFrame to detect keyboard open/close events and dynamically adjust container height
- On iOS, blocked automatic scrolling by using a CSS animation that changes the render object's opacity from 0 to 1 upon focus
- Starting with Android Chrome 108, the default behavior was changed to maintain the layout viewport and only shrink the visual viewport when the keyboard is displayed
- The VirtualKeyboard API is not supported in Safari and iOS WebView, making it impossible to predict keyboard height in advance
- Since position: fixed elements behave differently across browsers, reliance was reduced by adopting a Flexbox-based layout
This summary was generated automatically by AI. Check the original for the author's claims and context. Copyright belongs to the original author.
Our guide explains how the AI works. Report summary errors, attribution issues, or removal requests via Contact.