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

Unified Diff: cc/input/scroll_state.h

Issue 2194833002: Overscroll and Elasticity for views::ScrollView Base URL: https://chromium.googlesource.com/chromium/src.git@20160728-MacViews-RouteThroughInputHandler
Patch Set: Restore functionality and fix bugs \o/ Created 4 years, 1 month 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 | « cc/input/scroll_elasticity_helper.cc ('k') | cc/layers/layer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/input/scroll_state.h
diff --git a/cc/input/scroll_state.h b/cc/input/scroll_state.h
index 86bc6581de31e99fc3d73299ed57783a4e62dd55..6768d06b2c653a5ce7ff678b94fe5fefc79e2606 100644
--- a/cc/input/scroll_state.h
+++ b/cc/input/scroll_state.h
@@ -83,7 +83,9 @@ class CC_EXPORT ScrollState {
data_.delta_consumed_for_scroll_sequence = delta_consumed;
}
- bool FullyConsumed() const { return !data_.delta_x && !data_.delta_y; }
+ bool FullyConsumed() const {
+ return !data_.delta_x && !data_.delta_y /* && !data_.overscroll_pending */;
+ }
void set_caused_scroll(bool x, bool y) {
data_.caused_scroll_x |= x;
« no previous file with comments | « cc/input/scroll_elasticity_helper.cc ('k') | cc/layers/layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698