Index: cc/trees/layer_tree_host_impl.cc |
diff --git a/cc/trees/layer_tree_host_impl.cc b/cc/trees/layer_tree_host_impl.cc |
index 62654865f4d51e641bd820b3652b2b945f2c1adc..420f19f51ffd73100e173c2b6d706129b1bf730e 100644 |
--- a/cc/trees/layer_tree_host_impl.cc |
+++ b/cc/trees/layer_tree_host_impl.cc |
@@ -3033,6 +3033,14 @@ InputHandler::ScrollStatus LayerTreeHostImpl::ScrollAnimated( |
} |
scroll_state.set_is_ending(true); |
ScrollEnd(&scroll_state); |
+ if (settings_.is_layer_tree_for_subframe && |
+ scroll_status.thread == SCROLL_ON_IMPL_THREAD) { |
+ // If we get to here, we shouldn't return SCROLL_ON_IMPL_THREAD as otherwise |
+ // we'll mark the scroll as handled and the scroll won't bubble. |
+ scroll_status.thread = SCROLL_IGNORED; |
+ scroll_status.main_thread_scrolling_reasons = |
+ MainThreadScrollingReason::kNotScrollable; |
+ } |
return scroll_status; |
} |