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

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

Issue 2835403002: Call ScrollableArea::ShowOverlayScrollbars for explicit scrolls only. (Closed)
Patch Set: fix VisualViewport Created 3 years, 8 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 d1dbb2c358809d9d3ad9edc53de629e98dcb24ab..89ca451fd2736d1b601190de7bccd0cedf59aba3 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
@@ -372,7 +372,6 @@ void PaintLayerScrollableArea::UpdateScrollOffset(
if (GetScrollOffset() == new_offset)
return;
- ShowOverlayScrollbars();
scroll_offset_ = new_offset;
LocalFrame* frame = Box().GetFrame();
@@ -472,6 +471,8 @@ void PaintLayerScrollableArea::UpdateScrollOffset(
}
if (IsExplicitScrollType(scroll_type)) {
+ if (scroll_type != kCompositorScroll)
+ ShowOverlayScrollbars();
frame_view->ClearFragmentAnchor();
if (RuntimeEnabledFeatures::scrollAnchoringEnabled())
GetScrollAnchor()->Clear();

Powered by Google App Engine
This is Rietveld 408576698