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

Unified Diff: content/renderer/render_widget.cc

Issue 1176353002: Showing Gloweffect correctly during fling on mainthread. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: addressing nits Created 5 years, 6 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
« 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: content/renderer/render_widget.cc
diff --git a/content/renderer/render_widget.cc b/content/renderer/render_widget.cc
index c512d41fce1f9ef2586cbe2d416d3b84e793210e..913d0b5259905a2d60bde18e99518392cc11fd83 100644
--- a/content/renderer/render_widget.cc
+++ b/content/renderer/render_widget.cc
@@ -2228,8 +2228,10 @@ void RenderWidget::didOverscroll(
accumulatedRootOverScroll.width, accumulatedRootOverScroll.height);
params.latest_overscroll_delta =
gfx::Vector2dF(unusedDelta.width, unusedDelta.height);
+ // TODO(sataya.m): don't negate velocity once http://crbug.com/499743 is
+ // fixed.
params.current_fling_velocity =
- gfx::Vector2dF(velocity.width, velocity.height);
+ gfx::Vector2dF(-velocity.width, -velocity.height);
params.causal_event_viewport_point = gfx::PointF(position.x, position.y);
Send(new InputHostMsg_DidOverscroll(routing_id_, params));
}
« 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