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

Unified Diff: third_party/WebKit/Source/core/input/EventHandler.cpp

Issue 2871703003: Clear the state of scroll and selection onmouseup (Closed)
Patch Set: Update the test Created 3 years, 7 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/input/EventHandlerTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/input/EventHandler.cpp
diff --git a/third_party/WebKit/Source/core/input/EventHandler.cpp b/third_party/WebKit/Source/core/input/EventHandler.cpp
index 88231b20507d3c80971eb3deb373786d143eaaad..8e454390acec58bcf09cb63ba81c582c709365cf 100644
--- a/third_party/WebKit/Source/core/input/EventHandler.cpp
+++ b/third_party/WebKit/Source/core/input/EventHandler.cpp
@@ -1003,13 +1003,15 @@ WebInputEventResult EventHandler::HandleMouseReleaseEvent(
scroll_manager_->ClearResizeScrollableArea(false);
- if (event_result == WebInputEventResult::kNotHandled)
- event_result = mouse_event_manager_->HandleMouseReleaseEvent(mev);
+ WebInputEventResult selection_scroll_event_result =
+ mouse_event_manager_->HandleMouseReleaseEvent(mev);
dtapuska 2017/05/08 18:54:07 What about preventing the paste on middle click re
mouse_event_manager_->ClearDragHeuristicState();
mouse_event_manager_->InvalidateClick();
- return EventHandlingUtil::MergeEventResult(click_event_result, event_result);
+ return EventHandlingUtil::MergeEventResult(
+ EventHandlingUtil::MergeEventResult(click_event_result, event_result),
+ selection_scroll_event_result);
}
static bool TargetIsFrame(Node* target, LocalFrame*& frame) {
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/input/EventHandlerTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698