Fix jerky incognito toggle animation in Android horizontal tab switcher
In https://chromium-review.googlesource.com/1096489, I added a fix for an issue where a tab could get stuck in a partially-discarded state if you started dragging it and then tapped the incognito button while you still had your finger down. Unfortunately, my original fix for the issue, which was to start an undiscard animation in NonOverlappingStack#runSwitchAwayAnimation(), is a bad idea, since that animation animates the StackTabs' scroll offsets, conflicting with the incognito animation, causing animation jankiness. This CL replaces the call to start the discard animation with a loop that just sets each tab's scroll offset to 0. Bug: 853034,852995,831359 Change-Id: I4b6e34bf68afb9ce025e3272c0c0816f84f8b48e Reviewed-on: https://chromium-review.googlesource.com/1102115Reviewed-by:Matthew Jones <mdjones@chromium.org> Commit-Queue: Ryan Landay <rlanday@chromium.org> Cr-Commit-Position: refs/heads/master@{#567675}
Showing
Please register or sign in to comment