| 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 052797af0691b402f6f20d6c0eba35ae2b2cc0f2..f5661a8842adf928cc86b6b07e81ea09613563ff 100644
|
| --- a/cc/trees/layer_tree_host_impl.cc
|
| +++ b/cc/trees/layer_tree_host_impl.cc
|
| @@ -2117,10 +2117,17 @@ void LayerTreeHostImpl::ScrollEnd() {
|
| }
|
|
|
| InputHandler::ScrollStatus LayerTreeHostImpl::FlingScrollBegin() {
|
| - if (active_tree_->CurrentlyScrollingLayer())
|
| - return ScrollStarted;
|
| + if (!active_tree_->CurrentlyScrollingLayer())
|
| + return ScrollIgnored;
|
|
|
| - return ScrollIgnored;
|
| + if (settings_.ignore_root_layer_flings &&
|
| + active_tree_->CurrentlyScrollingLayer() ==
|
| + active_tree_->RootScrollLayer()) {
|
| + ClearCurrentlyScrollingLayer();
|
| + return ScrollIgnored;
|
| + }
|
| +
|
| + return ScrollStarted;
|
| }
|
|
|
| void LayerTreeHostImpl::NotifyCurrentFlingVelocity(gfx::Vector2dF velocity) {
|
|
|