Commit 2ff82be
committed
fix(base): prevent body from being scrolled by cross-frame scrollIntoView
Chrome's smooth cross-frame scrollIntoView walks up through frame boundaries
and lands on the parent's nearest scroll container. With `overflow: hidden`,
body is still treated as a scroll container that can be programmatically
scrolled, so when iframe content (e.g. the custom panel chat) auto-scrolls
on new content, the engine slides the entire body up by the off-screen
toolbar's height. Switching to `overflow: clip` removes body from the scroll
container chain entirely so the propagation has nowhere to land.
`overflow: hidden` is kept as a fallback for browsers that do not understand
`clip` (Chrome <90, Safari <16).1 parent 9e7c09c commit 2ff82be
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
33 | 40 | | |
| 41 | + | |
34 | 42 | | |
35 | 43 | | |
36 | 44 | | |
| |||
0 commit comments