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

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

Issue 2283013002: Adding chrome flag to disable implicit capture (Closed)
Patch Set: Addressing comments about comments :) 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 6635c14d1ec4f4bdaef2cef775c2d35c542c5fd3..6eced7f17500571408547a5e1b34d499bca80180 100644
--- a/third_party/WebKit/Source/core/input/PointerEventManager.cpp
+++ b/third_party/WebKit/Source/core/input/PointerEventManager.cpp
@@ -495,7 +495,8 @@ WebInputEventResult PointerEventManager::sendTouchPointerEvent(
processCaptureAndPositionOfPointerEvent(pointerEvent, target);
// Setting the implicit capture for touch
- if (pointerEvent->type() == EventTypeNames::pointerdown)
+ if (!RuntimeEnabledFeatures::pointerEventV1SpecCapturingEnabled()
+ && pointerEvent->type() == EventTypeNames::pointerdown)
setPointerCapture(pointerEvent->pointerId(), target);
WebInputEventResult result = dispatchPointerEvent(
« no previous file with comments | « content/public/common/content_features.cc ('k') | third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698