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

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

Issue 2911413002: Disable drag and drop when we use stylus on Windows (Closed)
Patch Set: 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 | 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 50f262553678655b7ba9b9db05f8ae401c584405..a09bc63f3a8b4235f5b8c0b4382d8314be657016 100644
--- a/third_party/WebKit/Source/core/input/MouseEventManager.cpp
+++ b/third_party/WebKit/Source/core/input/MouseEventManager.cpp
@@ -755,6 +755,10 @@ WebInputEventResult MouseEventManager::HandleMouseDraggedEvent(
if (!mouse_pressed_)
return WebInputEventResult::kNotHandled;
+ if (event.Event().pointer_type ==
+ blink::WebPointerProperties::PointerType::kPen)
+ return WebInputEventResult::kNotHandled;
+
if (HandleDrag(event, DragInitiator::kMouse))
return WebInputEventResult::kHandledSystem;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698