The side does scrollIntoView for an element inside the side panel, I suppose it's triggered when the contents is scrolled. And the sidepanel is a `position:fixed` element and when it's closed the left style properly is `left: calc(-285px + -10px);`, it's out of the range of the visual viewport scrollable range. We bailout from the scrollIntoView call [if the given target is already inside the visual viewport](https://searchfox.org/mozilla-central/rev/f89fa2093be1cedd708fb8c5538df98ba73f4456/layout/base/PresShell.cpp#3793-3800), but we don't check it's the out of the visual viewport scrollable range.
Bug 1947223 Comment 7 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
The site does scrollIntoView for an element inside the side panel, I suppose it's triggered when the contents is scrolled. And the sidepanel is a `position:fixed` element and when it's closed the left style properly is `left: calc(-285px + -10px);`, it's out of the range of the visual viewport scrollable range. We bailout from the scrollIntoView call [if the given target is already inside the visual viewport](https://searchfox.org/mozilla-central/rev/f89fa2093be1cedd708fb8c5538df98ba73f4456/layout/base/PresShell.cpp#3793-3800), but we don't check it's the out of the visual viewport scrollable range.