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

Unified Diff: third_party/WebKit/Source/core/html/HTMLInputElement.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/html/HTMLInputElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLInputElement.cpp b/third_party/WebKit/Source/core/html/HTMLInputElement.cpp
index f756cd497958287b3e5296d753c4eaa68457c453..914b449d301f4de3c51f555732dac78b4fbb705a 100644
--- a/third_party/WebKit/Source/core/html/HTMLInputElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLInputElement.cpp
@@ -436,9 +436,9 @@ void HTMLInputElement::updateTouchEventHandlerRegistry()
EventHandlerRegistry& registry = document().frameHost()->eventHandlerRegistry();
// TODO(dtapuska): Make this passive touch listener see crbug.com/584438
if (hasTouchEventHandler)
- registry.didAddEventHandler(*this, EventHandlerRegistry::TouchEventBlocking);
+ registry.didAddEventHandler(*this, EventHandlerRegistry::TouchStartOrMoveEventBlocking);
else
- registry.didRemoveEventHandler(*this, EventHandlerRegistry::TouchEventBlocking);
+ registry.didRemoveEventHandler(*this, EventHandlerRegistry::TouchStartOrMoveEventBlocking);
m_hasTouchEventHandler = hasTouchEventHandler;
}
}
« no previous file with comments | « third_party/WebKit/Source/core/frame/EventHandlerRegistry.cpp ('k') | third_party/WebKit/Source/core/input/EventHandler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698