Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(443)

Unified Diff: third_party/WebKit/Source/core/input/EventHandler.cpp

Issue 1804063002: Fix wheel scrolling over scrollbar not scrolling page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Made test async Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/events/wheel-in-scrollbar-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/input/EventHandler.cpp
diff --git a/third_party/WebKit/Source/core/input/EventHandler.cpp b/third_party/WebKit/Source/core/input/EventHandler.cpp
index 645d51be8477559971abd6939f700eb84dfff90a..3931b98fea8f8b8daeb2f8a700da9927d97d1f2b 100644
--- a/third_party/WebKit/Source/core/input/EventHandler.cpp
+++ b/third_party/WebKit/Source/core/input/EventHandler.cpp
@@ -1798,6 +1798,10 @@ WebInputEventResult EventHandler::handleWheelEvent(const PlatformWheelEvent& eve
if (node && node->isTextNode())
node = FlatTreeTraversal::parent(*node);
+ // If we're over the frame scrollbar, scroll the document.
+ if (!node && result.scrollbar())
+ node = doc->documentElement();
+
bool sendDOMEvent = true;
LocalFrame* subframe = subframeForTargetNode(node);
if (subframe) {
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/events/wheel-in-scrollbar-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698