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

Unified Diff: content/browser/renderer_host/input/touch_selection_controller.cc

Issue 312293002: Paste popup is positioning properly during content scroll. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Optimized the condition checks Created 6 years, 5 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
Index: content/browser/renderer_host/input/touch_selection_controller.cc
diff --git a/content/browser/renderer_host/input/touch_selection_controller.cc b/content/browser/renderer_host/input/touch_selection_controller.cc
index 4b6ae00eb0dea347b6cc76c7480076ae9802f26a..ff8ae2b049cf52a71c6324646318f157ad641723 100644
--- a/content/browser/renderer_host/input/touch_selection_controller.cc
+++ b/content/browser/renderer_host/input/touch_selection_controller.cc
@@ -166,8 +166,10 @@ bool TouchSelectionController::Animate(base::TimeTicks frame_time) {
}
void TouchSelectionController::OnHandleDragBegin(const TouchHandle& handle) {
- if (&handle == insertion_handle_.get())
+ if (&handle == insertion_handle_.get()) {
+ client_->OnSelectionEvent(INSERTION_DRAG_BEGUN, GetStartPosition());
return;
+ }
if (&handle == start_selection_handle_.get()) {
fixed_handle_position_ = end_selection_handle_->position() -

Powered by Google App Engine
This is Rietveld 408576698