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

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: Remove API from ChromeClient 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..25e13e0270c143b8bbd9eed6eef60075cb1f9c8d 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