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

Unified Diff: cc/layers/layer_impl.cc

Issue 1686833002: Add knowledge about blocking and passive event listeners. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix typo Created 4 years, 10 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
« no previous file with comments | « cc/input/event_listener_properties.h ('k') | cc/trees/layer_tree_host_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer_impl.cc
diff --git a/cc/layers/layer_impl.cc b/cc/layers/layer_impl.cc
index 2f76af2e583882b24d7a42e31f3d34c9ab40573e..8749be0a9552c7c471ab537e6db74c193129ec5c 100644
--- a/cc/layers/layer_impl.cc
+++ b/cc/layers/layer_impl.cc
@@ -545,6 +545,7 @@ InputHandler::ScrollStatus LayerImpl::TryScroll(
layer_tree_impl_->event_listener_properties(
EventListenerClass::kMouseWheel);
if (event_properties == EventListenerProperties::kBlocking ||
+ event_properties == EventListenerProperties::kBlockingAndPassive ||
(!layer_tree_impl_->settings().use_mouse_wheel_gestures &&
event_properties == EventListenerProperties::kPassive)) {
TRACE_EVENT0("cc", "LayerImpl::tryScroll: Failed WheelEventHandlers");
« no previous file with comments | « cc/input/event_listener_properties.h ('k') | cc/trees/layer_tree_host_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698