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

Unified Diff: cc/layers/layer_impl.cc

Issue 1418493003: Let LayerTreeHostImpl::ScrollAnimated scroll the outer viewport. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rename IsCurrentlyScrollingRoot Created 5 years, 2 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: cc/layers/layer_impl.cc
diff --git a/cc/layers/layer_impl.cc b/cc/layers/layer_impl.cc
index e71bc79871f55670eab85aa2e9a4481d18523828..4f6110442eca4c506945e1e5e923558e5347daba 100644
--- a/cc/layers/layer_impl.cc
+++ b/cc/layers/layer_impl.cc
@@ -526,7 +526,8 @@ InputHandler::ScrollStatus LayerImpl::TryScroll(
return InputHandler::SCROLL_ON_MAIN_THREAD;
}
- if (type == InputHandler::WHEEL && have_wheel_event_handlers() &&
+ if ((type == InputHandler::WHEEL || type == InputHandler::ANIMATED_WHEEL) &&
+ have_wheel_event_handlers() &&
effective_block_mode & SCROLL_BLOCKS_ON_WHEEL_EVENT) {
TRACE_EVENT0("cc", "LayerImpl::tryScroll: Failed WheelEventHandlers");
return InputHandler::SCROLL_ON_MAIN_THREAD;

Powered by Google App Engine
This is Rietveld 408576698