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

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

Issue 2871703003: Clear the state of scroll and selection onmouseup (Closed)
Patch Set: Remove redundant parameter 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 | « third_party/WebKit/Source/core/input/MouseEventManager.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/input/MouseEventManager.cpp
diff --git a/third_party/WebKit/Source/core/input/MouseEventManager.cpp b/third_party/WebKit/Source/core/input/MouseEventManager.cpp
index 966780376fb1bc7464f78fdc74413cb579749d3d..8337a1ae0e458c19d44fe183777a2f83905b1603 100644
--- a/third_party/WebKit/Source/core/input/MouseEventManager.cpp
+++ b/third_party/WebKit/Source/core/input/MouseEventManager.cpp
@@ -505,6 +505,13 @@ bool MouseEventManager::SlideFocusOnShadowHostIfNecessary(
return false;
}
+void MouseEventManager::HandleMouseReleaseEventUpdateStates() {
+ ClearDragHeuristicState();
+ InvalidateClick();
+ frame_->GetEventHandler().GetSelectionController().SetMouseDownMayStartSelect(
+ false);
+}
+
void MouseEventManager::HandleMousePressEventUpdateStates(
const WebMouseEvent& mouse_event) {
CancelFakeMouseMoveEvent();
@@ -522,6 +529,9 @@ void MouseEventManager::HandleMousePressEventUpdateStates(
} else {
InvalidateClick();
}
+
+ frame_->GetEventHandler().GetSelectionController().SetMouseDownMayStartSelect(
+ false);
}
bool MouseEventManager::IsMousePositionUnknown() {
« no previous file with comments | « third_party/WebKit/Source/core/input/MouseEventManager.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698