Index: ui/views/controls/button/custom_button.cc |
diff --git a/ui/views/controls/button/custom_button.cc b/ui/views/controls/button/custom_button.cc |
index 62f048173c68b2de35b20602c71f909c42275b17..ecd6ba9e97f9d135e1e78c14627158d3be8df2c6 100644 |
--- a/ui/views/controls/button/custom_button.cc |
+++ b/ui/views/controls/button/custom_button.cc |
@@ -167,14 +167,14 @@ bool CustomButton::OnMouseDragged(const ui::MouseEvent& event) { |
if (HitTestPoint(event.location())) { |
SetState(ShouldEnterPushedState(event) ? STATE_PRESSED : STATE_HOVERED); |
if (!InDrag() && ink_drop_delegate() && |
- ink_drop_delegate()->GetTargetInkDropState() != |
- views::InkDropState::ACTION_PENDING) |
+ ink_drop_delegate()->GetTargetInkDropState() == |
+ views::InkDropState::HIDDEN) |
ink_drop_delegate()->OnAction(views::InkDropState::ACTION_PENDING); |
} else { |
SetState(STATE_NORMAL); |
if (!InDrag() && ink_drop_delegate() && |
- ink_drop_delegate()->GetTargetInkDropState() != |
- views::InkDropState::HIDDEN) |
+ ink_drop_delegate()->GetTargetInkDropState() == |
+ views::InkDropState::ACTION_PENDING) |
ink_drop_delegate()->OnAction(views::InkDropState::HIDDEN); |
} |
} |