Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(material/tabs): avoid pagination infinite loop in safari (#29121)
Fixes a bug reported internally where the tabs pagination was going into an infinite loop at some widths. The root cause is a bit unclear, but it looks like in some cases Safari rounds up the `scrollWidth` and in some it doesn't which we end up hitting when adding/removing the pagination. These changes work around it by adding a 5px threshold that needs to be crossed before we start showing the pagination. The threshold shouldn't be noticable for users since the tabs have a 24px padding on each side. (cherry picked from commit cc00a74)
- Loading branch information