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

Unified Diff: cc/input/scrollbar_animation_controller_thinning.cc

Issue 2384053002: cancel overlay-scrollbar hover state when moving pointer out of window for ChromeOS (Closed)
Patch Set: quick return Created 4 years, 2 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 | « cc/input/input_handler.h ('k') | cc/input/scrollbar_animation_controller_thinning_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_thinning.cc
diff --git a/cc/input/scrollbar_animation_controller_thinning.cc b/cc/input/scrollbar_animation_controller_thinning.cc
index 4324a4347bf32943698961ea04265905845f8ff1..74352996fcff1cb964b2685c956ac76819694980 100644
--- a/cc/input/scrollbar_animation_controller_thinning.cc
+++ b/cc/input/scrollbar_animation_controller_thinning.cc
@@ -82,6 +82,9 @@ void ScrollbarAnimationControllerThinning::DidCaptureScrollbarEnd() {
}
void ScrollbarAnimationControllerThinning::DidMouseMoveOffScrollbar() {
+ if (!mouse_is_over_scrollbar_ && !mouse_is_near_scrollbar_)
+ return;
+
mouse_is_over_scrollbar_ = false;
mouse_is_near_scrollbar_ = false;
« no previous file with comments | « cc/input/input_handler.h ('k') | cc/input/scrollbar_animation_controller_thinning_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698