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

Unified Diff: cc/trees/layer_tree_host_impl.cc

Issue 769273002: Hide/show topbar when scrolling page up or down. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 10b06854b8fb1f5367eb3c08021d2442493aaf66..fd72979298a930b965ecfe7370e6d6dfadc5c975 100644
--- a/cc/trees/layer_tree_host_impl.cc
+++ b/cc/trees/layer_tree_host_impl.cc
@@ -2570,7 +2570,7 @@ bool LayerTreeHostImpl::ShouldTopControlsConsumeScroll(
return false;
// Always consume if it's in the direction to show the top controls.
- if (scroll_delta.y() < 0)
+ if (scroll_delta.y() != 0)
aelias_OOO_until_Jul13 2014/12/02 19:55:02 This fix isn't correct as it will hide the top con
elisabets 2014/12/05 13:30:26 Ah, so the CurrentlyScrollingLayer is the <scrolla
return true;
if (CurrentlyScrollingLayer() != InnerViewportScrollLayer() &&
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698