Bug 212534 - Event regions are wrong in the scrolled contents layer
Summary: Event regions are wrong in the scrolled contents layer
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: UI Events (show other bugs)
Version: Safari Technology Preview
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-29 11:08 PDT by Simon Fraser (smfr)
Modified: 2020-05-29 14:32 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Fraser (smfr) 2020-05-29 11:08:01 PDT
The event region in the scrolled contents layer covers only the visible part, meaning that if you swipe then tap before we've done layout/rendering update, you get the wrong region types.

RenderBlock::paintObject() uses:
auto borderRect = LayoutRect(paintOffset, size());
which is obviously wrong for the contents of scrolled overflow.