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

Unified Diff: cc/layers/viewport.cc

Issue 1236643003: [Android] Suppress overscroll for unscrollable axes in the browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove old test Created 5 years, 5 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 | « no previous file | cc/trees/layer_tree_host_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/viewport.cc
diff --git a/cc/layers/viewport.cc b/cc/layers/viewport.cc
index cf6883f1c9cdff78eee2940bca2eb08cef76bb8e..2b1a3e75c0cfa17cf5498f8914267e3ddb401097 100644
--- a/cc/layers/viewport.cc
+++ b/cc/layers/viewport.cc
@@ -158,16 +158,6 @@ gfx::Vector2dF Viewport::AdjustOverscroll(const gfx::Vector2dF& delta) const {
if (std::abs(adjusted.y()) < kEpsilon)
adjusted.set_y(0.0f);
- // Disable overscroll on axes which are impossible to scroll.
- if (host_impl_->settings().report_overscroll_only_for_scrollable_axes) {
- if (std::abs(MaxTotalScrollOffset().x()) <= kEpsilon ||
- !InnerScrollLayer()->user_scrollable_horizontal())
- adjusted.set_x(0.0f);
- if (std::abs(MaxTotalScrollOffset().y()) <= kEpsilon ||
- !InnerScrollLayer()->user_scrollable_vertical())
- adjusted.set_y(0.0f);
- }
-
return adjusted;
}
« no previous file with comments | « no previous file | cc/trees/layer_tree_host_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698