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

Unified Diff: third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp

Issue 2212543002: Disable scroll anchoring if the user engages in a drag motion (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove irrelevant comment Created 4 years, 4 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
Index: third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
index cb5500a93959ed72957af3adadf0b1c9d534d3bc..968af3ab18204aec36d202d956e606175bb48d2d 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
@@ -770,7 +770,8 @@ bool PaintLayerScrollableArea::shouldPerformScrollAnchoring() const
{
return RuntimeEnabledFeatures::scrollAnchoringEnabled()
&& m_scrollAnchor.hasScroller()
- && layoutBox()->style()->overflowAnchor() != AnchorNone;
+ && layoutBox()->style()->overflowAnchor() != AnchorNone
+ && box().frame()->view()->userMayHaveDragged();
}
ScrollBehavior PaintLayerScrollableArea::scrollBehaviorStyle() const

Powered by Google App Engine
This is Rietveld 408576698