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

Unified Diff: third_party/WebKit/Source/core/frame/FrameView.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/frame/FrameView.cpp
diff --git a/third_party/WebKit/Source/core/frame/FrameView.cpp b/third_party/WebKit/Source/core/frame/FrameView.cpp
index 3fa8e63c185b071c4f343796b89e2d2f3ac3c1be..8af1effa9762e97ddbd2f7921a2f2d9832d52a1b 100644
--- a/third_party/WebKit/Source/core/frame/FrameView.cpp
+++ b/third_party/WebKit/Source/core/frame/FrameView.cpp
@@ -833,7 +833,8 @@ bool FrameView::shouldPerformScrollAnchoring() const
return RuntimeEnabledFeatures::scrollAnchoringEnabled()
&& m_frame->settings() && !m_frame->settings()->rootLayerScrolls()
&& m_scrollAnchor.hasScroller()
- && layoutBox()->style()->overflowAnchor() != AnchorNone;
+ && layoutBox()->style()->overflowAnchor() != AnchorNone
+ && !userMayHaveDragged();
}
static inline void layoutFromRootObject(LayoutObject& root)

Powered by Google App Engine
This is Rietveld 408576698