Commit af20bfc
fix(material/tabs): avoid interrupting click event when scrolling the header (#21911)
When a header is scrollable, we scroll a tab into view whenever it receives focus. The
problem is that if focus is moved as a result of a mouse/touch event, the tab can be
moved out from under the pointer, interrupting the click.
These changes work around the issue by not scrolling the header on mouse/touch focus.
Fixes #21898.
(cherry picked from commit 4279ff1)1 parent 51b7cba commit af20bfc
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
407 | 407 | | |
408 | 408 | | |
409 | 409 | | |
410 | | - | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
411 | 415 | | |
412 | 416 | | |
413 | 417 | | |
| |||
0 commit comments