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

Unified Diff: cc/input/scrollbar_animation_controller.cc

Issue 2718193002: Prevent handle MouseUp when mouse is capture a scrollbar (Closed)
Patch Set: add captured check in mouse up 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/input/scrollbar_animation_controller.cc
diff --git a/cc/input/scrollbar_animation_controller.cc b/cc/input/scrollbar_animation_controller.cc
index 6927d0415738fc93435406bdeb0fcd3f8f30db1d..04404d0830c5d3a07eeed68c6de7a668f31b48d1 100644
--- a/cc/input/scrollbar_animation_controller.cc
+++ b/cc/input/scrollbar_animation_controller.cc
@@ -222,7 +222,7 @@ void ScrollbarAnimationController::DidMouseDown() {
}
void ScrollbarAnimationController::DidMouseUp() {
- if (!need_thinning_animation_)
+ if (!need_thinning_animation_ || !Captured())
return;
vertical_controller_->DidMouseUp();
« 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