Bug 181214 - [iOS 11 only] Setting document.body.scrollTop when virtual keyboard is on always results in 0.
Summary: [iOS 11 only] Setting document.body.scrollTop when virtual keyboard is on alw...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: Safari 11
Hardware: iPhone / iPad iOS 11
: P2 Major
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-02 11:03 PST by Matthew Zeng
Modified: 2018-01-02 12:59 PST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew Zeng 2018-01-02 11:03:53 PST
When I’m trying to set document.body.scrollTop = document.body.scrollHeight when keyboard is on, it always results in body.scrollTop being set to 0. 
It turns out body.scrollTop will be set to 0 when I try to change it when keyboard is on, regardless of the value I’m giving.
This bug is only reproducible in iOS 11, both on Safari and Chrome. iOS 10 doesn’t have the problem.