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

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

Issue 2610023002: Reset DragState::m_dragSrc when mouse move doesn't meet drag threshold. (Closed)
Patch Set: Better comment about test circumstances. Created 3 years, 11 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: 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 d84acf00280e6d281215ce4200b0726d8bd3121a..29026f3ba4673a821acaa61dbc3369bbbdd318a2 100644
--- a/third_party/WebKit/Source/core/input/MouseEventManager.cpp
+++ b/third_party/WebKit/Source/core/input/MouseEventManager.cpp
@@ -788,8 +788,10 @@ bool MouseEventManager::handleDrag(const MouseEventWithHitTestResults& event,
m_frame->view()->setCursor(pointerCursor());
if (initiator == DragInitiator::Mouse &&
- !dragThresholdExceeded(event.event().position()))
+ !dragThresholdExceeded(event.event().position())) {
+ dragState().m_dragSrc = nullptr;
return true;
+ }
// Once we're past the drag threshold, we don't want to treat this gesture as
// a click.

Powered by Google App Engine
This is Rietveld 408576698