Bug 226354

Summary: VisualViewport fires lots scroll events for 0.5px offsets when scrolling on Retina iOS device
Product: WebKit Reporter: Simon Fraser (smfr) <simon.fraser>
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: john.crim, simon.fraser, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari Technology Preview   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=218465
Attachments:
Description Flags
Testcase none

Description Simon Fraser (smfr) 2021-05-27 13:38:39 PDT
Created attachment 429921 [details]
Testcase

When not zoomed, we should not be firing scroll events on the VisualViewport. However, we do, because of some 0.5px difference between the layout viewport and visual viewport, probably due to rounding. See testcase, test on iPad.
Comment 1 Radar WebKit Bug Importer 2021-05-27 13:38:58 PDT
<rdar://problem/78584763>
Comment 2 Simon Fraser (smfr) 2021-05-27 13:39:21 PDT
We also fire events on rubberbanding.