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 69ecc85f91005e2192f5ccb1ba4de2069503cfc9..470692ede1e56b86a6281597cb69e5fea2ae3c19 100644 |
--- a/cc/trees/layer_tree_host_impl.cc |
+++ b/cc/trees/layer_tree_host_impl.cc |
@@ -1864,6 +1864,8 @@ void LayerTreeHostImpl::AnimateTopControls(base::TimeTicks time) { |
return; |
gfx::Vector2dF scroll = top_controls_manager_->Animate(time); |
UpdateMaxScrollOffset(); |
+ if (RootScrollLayer()->TotalScrollOffset().y() == 0.f) |
+ return; |
RootScrollLayer()->ScrollBy(gfx::ScaleVector2d( |
scroll, 1.f / active_tree_->total_page_scale_factor())); |
} |