diff options
author | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-29 19:48:50 +0000 |
---|---|---|
committer | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-29 19:48:50 +0000 |
commit | 6475d6a97bdda96dc7f3a5d7f6aa1111e85f356f (patch) | |
tree | bf98e8adc9446535442fa87cc915645b915a1c65 /chrome/browser/views/tabs | |
parent | b84ffbd91aef5c3974b47ebbfb47dbfc2fe5593b (diff) | |
download | chromium_src-6475d6a97bdda96dc7f3a5d7f6aa1111e85f356f.zip chromium_src-6475d6a97bdda96dc7f3a5d7f6aa1111e85f356f.tar.gz chromium_src-6475d6a97bdda96dc7f3a5d7f6aa1111e85f356f.tar.bz2 |
Fixes bug in dragging tabs. Specifically if you only have one window
with one tab, drag the tab, and while dragging click and release the
right mouse button we get all confused. This is because we get two
OnMousePressed events in a row, which results in cancelling out the
current drag which doesn't work well when only one tab with one window
is left.
BUG=10800
TEST=see bug
Review URL: http://codereview.chromium.org/100169
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14870 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/tabs')
-rw-r--r-- | chrome/browser/views/tabs/tab.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/views/tabs/tab.cc b/chrome/browser/views/tabs/tab.cc index 5fa6d8d..37f8db1 100644 --- a/chrome/browser/views/tabs/tab.cc +++ b/chrome/browser/views/tabs/tab.cc @@ -162,7 +162,7 @@ void Tab::GetHitTestMask(gfx::Path* mask) const { } bool Tab::OnMousePressed(const views::MouseEvent& event) { - if (event.IsLeftMouseButton()) { + if (event.IsOnlyLeftMouseButton()) { // Store whether or not we were selected just now... we only want to be // able to drag foreground tabs, so we don't start dragging the tab if // it was in the background. |