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

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

Issue 2831933002: Make sure PointerEvents's isPrimary set correctly for stylus (Closed)
Patch Set: isprimary Created 3 years, 8 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/PointerEventManager.cpp
diff --git a/third_party/WebKit/Source/core/input/PointerEventManager.cpp b/third_party/WebKit/Source/core/input/PointerEventManager.cpp
index b4bf7541f4b9c6c8c3f1a60af86f90840e96f2cf..13a611b858f01c631efeaa43a705a4013f76f5e9 100644
--- a/third_party/WebKit/Source/core/input/PointerEventManager.cpp
+++ b/third_party/WebKit/Source/core/input/PointerEventManager.cpp
@@ -523,6 +523,10 @@ WebInputEventResult PointerEventManager::SendMousePointerEvent(
}
}
+ if (mouse_event.GetType() == WebInputEvent::kMouseLeave &&
+ mouse_event.pointer_type == WebPointerProperties::PointerType::kPen) {
+ pointer_event_factory_.Remove(pointer_event->pointerId());
+ }
return result;
}
« no previous file with comments | « third_party/WebKit/LayoutTests/external/wpt_automation/pointerevents/pointerevent_pointerleave_pen-manual-automation.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698