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

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: Rebased. 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
« no previous file with comments | « third_party/WebKit/Source/core/input/EventHandlerTest.cpp ('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 5961dd0ce4de863dcfabd41b0a977cb0ac2355ce..547576bfcfdcb621c8255bb0b1b2028f38caf45c 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.
« no previous file with comments | « third_party/WebKit/Source/core/input/EventHandlerTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698