Commit 8495c9bf authored by Taylor Bergquist's avatar Taylor Bergquist Committed by Commit Bot

Don't update hover cards while the new animator is running.

Bug: 1000184
Change-Id: I913d52e05dde3daa18543bf3c684344973a0c341
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1798174
Commit-Queue: Taylor Bergquist <tbergquist@chromium.org>
Reviewed-by: default avatarCaroline Rising <corising@chromium.org>
Cr-Commit-Position: refs/heads/master@{#698695}
parent 2026e37d
......@@ -1557,7 +1557,8 @@ void TabStrip::UpdateHoverCard(Tab* tab) {
if (!base::FeatureList::IsEnabled(features::kTabHoverCards))
return;
// We don't want to show a hover card for a tab while it is animating.
if (tab && bounds_animator_.IsAnimating(tab)) {
if (tab &&
(bounds_animator_.IsAnimating(tab) || layout_helper_->IsAnimating())) {
return;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment