Commit d8fafb98 authored by spqchan's avatar spqchan Committed by Commit bot

[Mac] Fix for fullscreen tabstrip animation

Fix for an issue where the tabstrip animates out when you're still
cycling between tabs.

BUG=591776

Review-Url: https://codereview.chromium.org/2672913002
Cr-Commit-Position: refs/heads/master@{#448014}
parent a80d18c3
......@@ -54,17 +54,19 @@ void FullscreenToolbarAnimationController::AnimateToolbarForTabstripChanges() {
if ([owner_ mustShowFullscreenToolbar])
return;
AnimateToolbarIn();
if (animation_.IsShowing()) {
hide_toolbar_timer_.Reset();
return;
}
should_hide_toolbar_after_delay_ = true;
AnimateToolbarIn();
}
void FullscreenToolbarAnimationController::AnimateToolbarIn() {
if (![owner_ isInFullscreen])
return;
if (animation_.IsShowing())
return;
animation_.Reset(animation_start_value_);
animation_.Show();
}
......
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