diff options
Diffstat (limited to 'chrome/browser/ui')
-rw-r--r-- | chrome/browser/ui/views/omnibox/omnibox_view_views.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/ui/views/omnibox/omnibox_view_views.cc b/chrome/browser/ui/views/omnibox/omnibox_view_views.cc index dc8c957..90c9290 100644 --- a/chrome/browser/ui/views/omnibox/omnibox_view_views.cc +++ b/chrome/browser/ui/views/omnibox/omnibox_view_views.cc @@ -239,7 +239,8 @@ bool OmniboxViewViews::OnMousePressed(const ui::MouseEvent& event) { } bool OmniboxViewViews::OnMouseDragged(const ui::MouseEvent& event) { - select_all_on_mouse_release_ = false; + if (ExceededDragThreshold(event.location() - last_click_location())) + select_all_on_mouse_release_ = false; return views::Textfield::OnMouseDragged(event); } |