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

Unified Diff: ash/launcher/launcher_view.cc

Issue 9837001: Do not handle the button click event for the mouse release of dragging launcher item. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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 | « ash/launcher/launcher_button.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/launcher/launcher_view.cc
diff --git a/ash/launcher/launcher_view.cc b/ash/launcher/launcher_view.cc
index 62b98527f7ac8c6d4a42b48e04a268befbe8b581..2a99fcd9535b3393ca834b634cbbb0d1cbcb4dc6 100644
--- a/ash/launcher/launcher_view.cc
+++ b/ash/launcher/launcher_view.cc
@@ -694,6 +694,10 @@ string16 LauncherView::GetAccessibleName(const views::View* view) {
void LauncherView::ButtonPressed(views::Button* sender,
const views::Event& event) {
+ // Do not handle mouse release during drag.
+ if (dragging_)
+ return;
+
if (sender == overflow_button_)
ShowOverflowMenu();
« no previous file with comments | « ash/launcher/launcher_button.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698