You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Typing a citation comment after scrolling the quote away scrolls the whole page #36193
I searched existing issues and did not find a duplicate.
I included enough detail to reproduce or investigate the problem.
Area
apps/web
Steps to reproduce
In a thread with a few long assistant replies, select text in a reply and cite it into the composer.
The citation comment box opens under the quoted text.
Scroll the timeline up so the quoted text goes below the composer and out of view.
Type in the comment box.
Expected behavior
Typing doesn't move anything. I scrolled for a reason, often to reread something above while I write the comment, so the scroll position I chose should stay put.
While the quote is out of view, the comment box should stay inside the visible timeline, on the edge where the quote left:
Scrolled up (quote below): the box sits just above the composer.
Scrolled down (quote above): the box sits at the top of the timeline.
Quote back in view: the box sits next to it again.
Actual behavior
The comment box follows the quote off-screen. The first keystroke makes the browser scroll the page to the caret, so the whole app shifts up: the header, the sidebar footer, and the composer all move (233px in the recording below). The box ends up half visible at the bottom of the window.
Web and desktop, Chromium. Reproduced at 1280×800 and 390×844.
Screenshots, recordings, or supporting files
Before, on main:
Related
#34787 fixes the same jump in a different way: it keeps the box on screen and scrolls the timeline back to the quote on each keystroke. I'd rather not have the timeline move away from where I scrolled, so I opened #36194 with the behavior described above as another option.
Activity