Index: cc/trees/layer_tree_host_impl.cc |
diff --git a/cc/trees/layer_tree_host_impl.cc b/cc/trees/layer_tree_host_impl.cc |
index 00be57f29e1240ace59276f22aeb371e2235bd42..fa293a5aee7400390c0b89ca7a326688ab1f80f9 100644 |
--- a/cc/trees/layer_tree_host_impl.cc |
+++ b/cc/trees/layer_tree_host_impl.cc |
@@ -2628,11 +2628,8 @@ bool LayerTreeHostImpl::ShouldTopControlsConsumeScroll( |
CurrentlyScrollingLayer() != OuterViewportScrollLayer()) |
return false; |
- if (InnerViewportScrollLayer()->MaxScrollOffset().y() > 0) |
- return true; |
- |
- if (OuterViewportScrollLayer() && |
- OuterViewportScrollLayer()->MaxScrollOffset().y() > 0) |
+ if (active_tree()->TotalScrollOffset().y() < |
+ active_tree()->TotalMaxScrollOffset().y()) |
return true; |
return false; |