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

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

Issue 1884863003: Non passive touch end or touch cancel listeners should not block scroll. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adjust comments Created 4 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/EventHandler.cpp
diff --git a/third_party/WebKit/Source/core/input/EventHandler.cpp b/third_party/WebKit/Source/core/input/EventHandler.cpp
index e54b78d72edbaf4f11f619e3a84ca813e6dae23e..e9e2e40d054fd7edeea2f95417c9a26c378eb5e9 100644
--- a/third_party/WebKit/Source/core/input/EventHandler.cpp
+++ b/third_party/WebKit/Source/core/input/EventHandler.cpp
@@ -110,7 +110,9 @@ namespace {
bool hasTouchHandlers(const EventHandlerRegistry& registry)
{
return registry.hasEventHandlers(EventHandlerRegistry::TouchEventBlocking)
- || registry.hasEventHandlers(EventHandlerRegistry::TouchEventPassive);
+ || registry.hasEventHandlers(EventHandlerRegistry::TouchEventPassive)
+ || registry.hasEventHandlers(EventHandlerRegistry::TouchEndOrCancelEventBlocking)
+ || registry.hasEventHandlers(EventHandlerRegistry::TouchEndOrCancelEventPassive);
}
const AtomicString& touchEventNameForTouchPointState(PlatformTouchPoint::TouchState state)

Powered by Google App Engine
This is Rietveld 408576698