| Index: ui/views/touchui/touch_selection_controller_impl.cc
|
| diff --git a/ui/views/touchui/touch_selection_controller_impl.cc b/ui/views/touchui/touch_selection_controller_impl.cc
|
| index 36b73d148acb928176352c7c40c2face95fb2c2d..bdc05e877d5d3a58337845b32ce11be0f567c5ce 100644
|
| --- a/ui/views/touchui/touch_selection_controller_impl.cc
|
| +++ b/ui/views/touchui/touch_selection_controller_impl.cc
|
| @@ -222,8 +222,10 @@ class TouchSelectionControllerImpl::EditingHandleView
|
| }
|
| case ui::ET_GESTURE_SCROLL_END:
|
| case ui::ET_SCROLL_FLING_START:
|
| - widget_->ReleaseCapture();
|
| controller_->SetDraggingHandle(NULL);
|
| + // ReleaseCapture() is potentially destructive and should be done at
|
| + // the very end.
|
| + widget_->ReleaseCapture();
|
| break;
|
| default:
|
| break;
|
|
|