DescriptionGlowEffect is suppressed when the scrolling is not possible on that particular
axes. In the about:blank Page horizontal and vertical scrolling is impossible,
so Horizontal and Vertical Glow effect is not shown in the high end devices.
But in the low end devices with device_scale_factor = 1.5
scaled_scroll_bounds in LayerImpl::MaxScrollOffset has decimal fraction
because of device_scale_factor due to which max_offset is non-zero, which
fails the below condition in LayerTreeHostImpl::ScrollBy function and this
triggers the GlowEffect.ToFlooredSize of scaled_scroll_bounds solves the issue.
if (std::abs(active_tree_->TotalMaxScrollOffset().x()) <= kEpsilon)
unused_root_delta.set_x(0.0f);
if (std::abs(active_tree_->TotalMaxScrollOffset().y()) <= kEpsilon)
unused_root_delta.set_y(0.0f);
BUG=363527
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=265188
Patch Set 1 #
Total comments: 1
Patch Set 2 : added unittest #
Total comments: 1
Patch Set 3 : Renamed Unittest Name #
Messages
Total messages: 8 (0 generated)
|