| Index: cc/animation/scrollbar_animation_controller_thinning.cc
|
| diff --git a/cc/animation/scrollbar_animation_controller_thinning.cc b/cc/animation/scrollbar_animation_controller_thinning.cc
|
| index 0c05709c8c06e7985104aebb3cf9a36d4bf20af1..0405074b55a311b1c2f5fa5543a6219c5d4cdf20 100644
|
| --- a/cc/animation/scrollbar_animation_controller_thinning.cc
|
| +++ b/cc/animation/scrollbar_animation_controller_thinning.cc
|
| @@ -145,8 +145,12 @@ void ScrollbarAnimationControllerThinning::ApplyOpacityAndThumbThicknessScale(
|
| ++it) {
|
| ScrollbarLayerImplBase* scrollbar = *it;
|
| if (scrollbar->is_overlay_scrollbar()) {
|
| - scrollbar->SetOpacity(
|
| - AdjustScale(opacity, scrollbar->opacity(), opacity_change_));
|
| + float effectiveOpacity =
|
| + scrollbar->CanScrollOrientation()
|
| + ? AdjustScale(opacity, scrollbar->opacity(), opacity_change_)
|
| + : 0;
|
| +
|
| + scrollbar->SetOpacity(effectiveOpacity);
|
| scrollbar->SetThumbThicknessScaleFactor(
|
| AdjustScale(thumb_thickness_scale,
|
| scrollbar->thumb_thickness_scale_factor(),
|
|
|