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

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 51501f37e039a2bf257d43cb321a63cd0b8543d6..c83ced3868f01ebe2a93000ddd3fed01843c184c 100644
--- a/third_party/WebKit/Source/core/input/PointerEventManager.cpp
+++ b/third_party/WebKit/Source/core/input/PointerEventManager.cpp
@@ -160,6 +160,9 @@ WebInputEventResult PointerEventManager::DispatchPointerEvent(
}
}
+ if (event_type == EventTypeNames::pointerleave)
dtapuska 2017/04/20 21:04:14 Do you want to do this after the pointerleave is d
Navid Zolghadr 2017/04/20 21:34:20 I don't think doing this here is correct. This wou
+ RemovePointer(pointer_event);
+
if (!RuntimeEnabledFeatures::pointerEventEnabled())
return WebInputEventResult::kNotHandled;
if (!check_for_listener || target->HasEventListeners(event_type)) {

Powered by Google App Engine
This is Rietveld 408576698