Commit dfd5ef53 authored by Manu Cornet's avatar Manu Cornet Committed by Commit Bot

CrOS shelf: stop tooltip timer when the mouse is elsewhere

Bug: 904231
Change-Id: I0eeb3131339da7d9c3cbeb308e7df50acd85220d
Reviewed-on: https://chromium-review.googlesource.com/c/1341648Reviewed-by: default avatarAlex Newcomer <newcomer@chromium.org>
Reviewed-by: default avatarMitsuru Oshima <oshima@chromium.org>
Commit-Queue: Manu Cornet <manucornet@chromium.org>
Cr-Commit-Position: refs/heads/master@{#609501}
parent 704c72ee
...@@ -127,6 +127,8 @@ void ShelfTooltipManager::OnMouseEvent(ui::MouseEvent* event) { ...@@ -127,6 +127,8 @@ void ShelfTooltipManager::OnMouseEvent(ui::MouseEvent* event) {
// The code below handles mouse move events within the shelf window. // The code below handles mouse move events within the shelf window.
if (event->type() != ui::ET_MOUSE_MOVED || if (event->type() != ui::ET_MOUSE_MOVED ||
event->target() != shelf_view_->GetWidget()->GetNativeWindow()) { event->target() != shelf_view_->GetWidget()->GetNativeWindow()) {
// Don't show delayed tooltips if the mouse is being active elsewhere.
timer_.Stop();
return; return;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment