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

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

Issue 2283013002: Adding chrome flag to disable implicit capture (Closed)
Patch Set: Created 4 years, 4 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 d258c2e85bba0711c5c58fad918864911fb5ecfa..cd4a8869607a468dfdb4ecf3e850c20174c1ea62 100644
--- a/third_party/WebKit/Source/core/input/PointerEventManager.cpp
+++ b/third_party/WebKit/Source/core/input/PointerEventManager.cpp
@@ -494,7 +494,8 @@ WebInputEventResult PointerEventManager::sendTouchPointerEvent(
processCaptureAndPositionOfPointerEvent(pointerEvent, target);
// Setting the implicit capture for touch
- if (pointerEvent->type() == EventTypeNames::pointerdown)
+ if (!RuntimeEnabledFeatures::pointerEventNoImplicitCaptureEnabled()
+ && pointerEvent->type() == EventTypeNames::pointerdown)
setPointerCapture(pointerEvent->pointerId(), target);
WebInputEventResult result = dispatchPointerEvent(

Powered by Google App Engine
This is Rietveld 408576698