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

Unified Diff: third_party/WebKit/Source/web/WebPagePopupImpl.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: 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/web/WebPagePopupImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebPagePopupImpl.cpp b/third_party/WebKit/Source/web/WebPagePopupImpl.cpp
index 61a0bfa6c2d66e97cabf465c0b10f3c09a409a8f..12c16f7968948ebeabbe254c436a0669ecf91b3d 100644
--- a/third_party/WebKit/Source/web/WebPagePopupImpl.cpp
+++ b/third_party/WebKit/Source/web/WebPagePopupImpl.cpp
@@ -163,10 +163,13 @@ private:
m_popup->m_webView->client()->didChangeCursor(WebCursorInfo(cursor));
}
+ void setHaveTouchEventListeners(bool hasListeners) override
+ {
+ m_popup->widgetClient()->hasTouchEventHandlers(hasListeners);
+ }
+
void setEventListenerProperties(WebEventListenerClass eventClass, WebEventListenerProperties properties) override
{
- if (eventClass == WebEventListenerClass::Touch)
- m_popup->widgetClient()->hasTouchEventHandlers(properties != WebEventListenerProperties::Nothing);
if (m_popup->m_layerTreeView)
m_popup->m_layerTreeView->setEventListenerProperties(eventClass, properties);
}

Powered by Google App Engine
This is Rietveld 408576698