In WeChat's in-app browser (WKWebView) the visual viewport can report the full height while the keyboard is up. ViewportScrollLock (BUG-920) then took the keyboard for closed and reset the window scroll on every visualViewport event; iOS scrolled the composer back into view, the next event reset it again, and the page jumped up and down while the user typed. A focused text field now counts as an open keyboard; the reset after the field loses focus is kept. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8