| Index: ui/touch_selection/touch_selection_controller.cc
|
| diff --git a/ui/touch_selection/touch_selection_controller.cc b/ui/touch_selection/touch_selection_controller.cc
|
| index 3a4ae475ece6b4e548be889761303935bd1fe2fc..9ec5d58b3fd6beb6b1cb8ffc761af1e242ca7306 100644
|
| --- a/ui/touch_selection/touch_selection_controller.cc
|
| +++ b/ui/touch_selection/touch_selection_controller.cc
|
| @@ -61,7 +61,6 @@ TouchSelectionController::TouchSelectionController(
|
| temporarily_hidden_(false),
|
| selection_handle_dragged_(false) {
|
| DCHECK(client_);
|
| - HideAndDisallowShowingAutomatically();
|
| }
|
|
|
| TouchSelectionController::~TouchSelectionController() {
|
| @@ -268,7 +267,9 @@ void TouchSelectionController::OnHandleDragUpdate(const TouchHandle& handle,
|
| }
|
|
|
| void TouchSelectionController::OnHandleDragEnd(const TouchHandle& handle) {
|
| - if (&handle != insertion_handle_.get())
|
| + if (&handle == insertion_handle_.get())
|
| + client_->OnSelectionEvent(INSERTION_DRAG_STOPPED, handle.position());
|
| + else
|
| client_->OnSelectionEvent(SELECTION_DRAG_STOPPED, handle.position());
|
| }
|
|
|
|
|