[Webkit-unassigned] [Bug 169129] Can't reliably scroll page whenever mouse cursor inside iframe inside scrollable div with touchpad
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed May 15 10:07:30 PDT 2019
https://bugs.webkit.org/show_bug.cgi?id=169129
--- Comment #10 from Simon Fraser (smfr) <simon.fraser at apple.com> ---
EventHandler::platformPrepareForWheelEvents() has some confusing code:
scrollableContainer = findEnclosingScrollableContainer(wheelEventTarget.get(), wheelEvent.deltaX(), wheelEvent.deltaY());
if (scrollableContainer && !is<HTMLIFrameElement>(wheelEventTarget))
scrollableArea = scrollableAreaForContainerNode(*scrollableContainer);
else {
scrollableContainer = view->frame().document()->bodyOrFrameset();
scrollableArea = makeWeakPtr(static_cast<ScrollableArea&>(*view));
...
Here scrollableContainer is the overflow:scroll in the main document. wheelEventTarget is the <iframe> element. So we call into:
scrollableContainer = view->frame().document()->bodyOrFrameset();
and scrollableContainer ends up as the body(!) of the main page.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20190515/4115b0a2/attachment.html>
More information about the webkit-unassigned
mailing list