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

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

Issue 1895303007: Non passive touch end or touch cancel listeners should not block scroll. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2704
Patch Set: 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 7d09eae348f4d3c1d3db1f1b50362dd276b78629..80eb23a6d98abe4e4e2a0d0b7e72477d32ec560b 100644
--- a/third_party/WebKit/Source/core/input/EventHandler.cpp
+++ b/third_party/WebKit/Source/core/input/EventHandler.cpp
@@ -109,8 +109,10 @@ namespace {
bool hasTouchHandlers(const EventHandlerRegistry& registry)
{
- return registry.hasEventHandlers(EventHandlerRegistry::TouchEventBlocking)
- || registry.hasEventHandlers(EventHandlerRegistry::TouchEventPassive);
+ return registry.hasEventHandlers(EventHandlerRegistry::TouchStartOrMoveEventBlocking)
+ || registry.hasEventHandlers(EventHandlerRegistry::TouchStartOrMoveEventPassive)
+ || registry.hasEventHandlers(EventHandlerRegistry::TouchEndOrCancelEventBlocking)
+ || registry.hasEventHandlers(EventHandlerRegistry::TouchEndOrCancelEventPassive);
}
const AtomicString& touchEventNameForTouchPointState(PlatformTouchPoint::TouchState state)
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLInputElement.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698