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

Unified Diff: cc/trees/layer_tree_host_impl.cc

Issue 2683763004: Pass MouseUp to the captured scrollbar animation controller in layer tree (Closed)
Patch Set: Created 3 years, 10 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 | cc/trees/layer_tree_host_impl_unittest.cc » ('j') | 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 ecf60cf97cc12578d03d7175fa08acc1dd916b00..e8e0fb350a08cd7c141945d200846c10139e3545 100644
--- a/cc/trees/layer_tree_host_impl.cc
+++ b/cc/trees/layer_tree_host_impl.cc
@@ -3240,10 +3240,8 @@ void LayerTreeHostImpl::MouseDown() {
}
void LayerTreeHostImpl::MouseUp() {
- ScrollbarAnimationController* animation_controller =
- ScrollbarAnimationControllerForId(scroll_layer_id_mouse_currently_over_);
- if (animation_controller)
- animation_controller->DidMouseUp();
+ for (auto& pair : scrollbar_animation_controllers_)
bokan 2017/02/10 15:56:40 This only needs to notify the one captured scrollb
+ pair.second->DidMouseUp();
}
void LayerTreeHostImpl::MouseMoveAt(const gfx::Point& viewport_point) {
« no previous file with comments | « no previous file | cc/trees/layer_tree_host_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698