From 6cb2b8005e8dbaca2273913234dda828ad51018a Mon Sep 17 00:00:00 2001 From: "idanan@chromium.org" Date: Wed, 10 Jun 2009 14:05:45 +0000 Subject: Issue 8838: Close box not highlighted We optimize mouse-mouve event handling by ignoring two mouse-move events in a row which works in most cases except that when we animate tab-closing on windows we send a duplicate mouse-move event on purpose to highlight the button. Unfortunately our optimization kicks in. Fixed by reseting the flag to optimize this before sending the extra mouse-move. BUG=8838 Review URL: http://codereview.chromium.org/118454 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18052 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/views/tabs/tab_strip.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'chrome/browser') diff --git a/chrome/browser/views/tabs/tab_strip.cc b/chrome/browser/views/tabs/tab_strip.cc index 2db2c86..d669be3 100644 --- a/chrome/browser/views/tabs/tab_strip.cc +++ b/chrome/browser/views/tabs/tab_strip.cc @@ -346,6 +346,7 @@ class TabStrip::RemoveTabAnimation : public TabStrip::TabAnimation { pt.x -= wr.left; pt.y -= wr.top; + static_cast(widget)->ResetLastMouseMoveFlag(); // Return to message loop - otherwise we may disrupt some operation that's // in progress. PostMessage(widget->GetNativeView(), WM_MOUSEMOVE, 0, -- cgit v1.1