Bug 197387
Summary: | [macOS] scroll event doesn't fire on Visual Viewport API | ||
---|---|---|---|
Product: | WebKit | Reporter: | Ryosuke Niwa <rniwa> |
Component: | Scrolling | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED INVALID | ||
Severity: | Normal | CC: | simon.fraser, webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar |
Version: | WebKit Nightly Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Bug Depends on: | |||
Bug Blocks: | 170982 |
Ryosuke Niwa
Apparently we don't fire scroll event on visual viewport API on macOS :(
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/50311222>
Ryosuke Niwa
Actually, the current behavior of WebKit matches that of Chrome so this is probably not really a bug. In fact, offsetTop/offsetLeft are always 0 on macOS when it's not zoomed. When we're zoomed, we'd fire scroll events as expected. This is somewhat counterintuitive but it's probably safe to match Chrome's behavior here.
Simon Fraser (smfr)
Right, that's related to whether you fire scroll events on visual or layout viewport changes.