When the mouse is over the border of an overflow:scroll, the content is scrollable. This seems wrong and doesn't match other browsers, or iframes.
Created attachment 329832 [details] Testcase
https://codepen.io/anon/pen/ppyQgY
This quick hack provides the correct behavior for the test case: diff --git a/Source/WebCore/rendering/RenderBlock.cpp b/Source/WebCore/rendering/RenderBlock.cpp index f2ca0e134c9..781b12343c1 100644 --- a/Source/WebCore/rendering/RenderBlock.cpp +++ b/Source/WebCore/rendering/RenderBlock.cpp @@ -2238,3 +2238,4 @@ bool RenderBlock::nodeAtPoint(const HitTestRequest& request, HitTestResult& resu if (hitTestAction == HitTestBlockBackground || hitTestAction == HitTestChildBlockBackground) { - LayoutRect boundsRect(adjustedLocation, size()); + LayoutRect boundsRect = paddingBoxRect(); + boundsRect.moveBy(adjustedLocation); if (visibleToHitTesting() && locationInContainer.intersects(boundsRect)) { However, I'm not sure that's what we want. Do you have any suggestion?
Does that affect click behavior as well?
(In reply to Simon Fraser (smfr) from comment #4) > Does that affect click behavior as well? I suspect it does, that's my doubt. My idea was to pass some specific info via the HitAction param in the case of overflow scrolling, so we can distinguish that case. Anyway, I just wanted to check if you already thought about something, I'll try and debug more after I have a patch for review in bug 173833.