Fix stuttering issue.
Caused by rounding. Because we previously were using host width in the calculation (which varied across layout passes, especially during animation) we could calculate a different center x position with each layout pass. Now, the child view center x position is based on its own width (which is constant) and screen center x position (which is constant) so there is no more stuttering issue. Bug: b:113346276 Change-Id: Id3a95235bd15a716df51313a33e11d4d7e4006be Reviewed-on: https://chromium-review.googlesource.com/1194970Reviewed-by:Xiaohui Chen <xiaohuic@chromium.org> Commit-Queue: David Black <dmblack@google.com> Cr-Commit-Position: refs/heads/master@{#587000}
Showing
Please register or sign in to comment