Bug 181214
Summary: | [iOS 11 only] Setting document.body.scrollTop when virtual keyboard is on always results in 0. | ||
---|---|---|---|
Product: | WebKit | Reporter: | Matthew Zeng <zeostudio> |
Component: | Layout and Rendering | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Major | CC: | bfulgham, simon.fraser, wenson_hsieh, zalan |
Priority: | P2 | ||
Version: | Safari 11 | ||
Hardware: | iPhone / iPad | ||
OS: | iOS 11 |
Matthew Zeng
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.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |