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

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..e543a98baab3f1352d9e22116b018c7594052548 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 &&
+ pointer_event->pointerType() == "pen") {
dtapuska 2017/04/27 16:57:39 I think this could probably be: mouse_event.pointe
lanwei 2017/04/27 20:18:20 Done.
+ pointer_event_factory_.Remove(pointer_event->pointerId());
+ }
return result;
}

Powered by Google App Engine
This is Rietveld 408576698