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

Unified Diff: Source/core/page/EventHandler.cpp

Issue 14598021: Correct the (x, y) position of dragstart event initiated by touch event (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 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 | « LayoutTests/fast/events/touch/gesture/long-press-on-draggable-element-triggers-drag.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/EventHandler.cpp
diff --git a/Source/core/page/EventHandler.cpp b/Source/core/page/EventHandler.cpp
index 9a339bd89785e8814b5d0b6361fd02a41df373d4..3c2eabd3aff6732525fe098936b2173a6b22600f 100644
--- a/Source/core/page/EventHandler.cpp
+++ b/Source/core/page/EventHandler.cpp
@@ -2410,6 +2410,7 @@ bool EventHandler::handleGestureLongPress(const PlatformGestureEvent& gestureEve
m_didStartDrag = false;
m_mouseDownMayStartDrag = true;
dragState().m_dragSrc = 0;
+ m_mouseDown = mouseDragEvent;
varunjain 2013/05/17 16:43:51 I think this change is correct. But I am a little
Hongbo Min 2013/05/20 01:47:15 I don't rename m_mouseDown field since it just rec
m_mouseDownPos = m_frame->view()->windowToContents(mouseDragEvent.position());
handleDrag(mev, DontCheckDragHysteresis);
if (m_didStartDrag) {
« no previous file with comments | « LayoutTests/fast/events/touch/gesture/long-press-on-draggable-element-triggers-drag.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698