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

Unified Diff: ui/events/blink/input_handler_proxy.cc

Issue 2884423003: Use scroll-boundary-behavior to control overscroll-refresh/glow on android. (Closed)
Patch Set: Fixed the comments Created 3 years, 7 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
Index: ui/events/blink/input_handler_proxy.cc
diff --git a/ui/events/blink/input_handler_proxy.cc b/ui/events/blink/input_handler_proxy.cc
index abc8bb79a85a5380336cdfdf90aa0d20de341b6f..d7443a89b1b6de4d22d4c81cc32a09b099b45933 100644
--- a/ui/events/blink/input_handler_proxy.cc
+++ b/ui/events/blink/input_handler_proxy.cc
@@ -1427,13 +1427,16 @@ void InputHandlerProxy::HandleOverscroll(
ToClientScrollIncrement(current_fling_velocity_);
current_overscroll_params_->causal_event_viewport_point =
gfx::PointF(causal_event_viewport_point);
+ current_overscroll_params_->scroll_boundary_behavior =
+ scroll_result.scroll_boundary_behavior;
return;
}
client_->DidOverscroll(scroll_result.accumulated_root_overscroll,
scroll_result.unused_scroll_delta,
ToClientScrollIncrement(current_fling_velocity_),
- gfx::PointF(causal_event_viewport_point));
+ gfx::PointF(causal_event_viewport_point),
+ scroll_result.scroll_boundary_behavior);
}
bool InputHandlerProxy::CancelCurrentFling() {

Powered by Google App Engine
This is Rietveld 408576698