Skip to content

Commit

Permalink
rm something
Browse files Browse the repository at this point in the history
  • Loading branch information
meganrogge committed Oct 31, 2024
1 parent ca9b197 commit 36cc379
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vs/workbench/contrib/chat/browser/chatWidget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ export class ChatWidget extends Disposable implements IChatWidget {
const buffer = 10;

// Check if the element is above or below the current visible area
if (elementOffsetTop !== 0 && elementOffsetTop < currentScrollTop) {
if (elementOffsetTop !== 0 && elementOffsetTop < currentScrollTop && !(elementOffsetBottom > currentScrollTop)) {
console.log('scrolling up', elementOffsetTop);
// Element is above the visible area, scroll up
this.tree.scrollTop = elementOffsetTop - buffer;
Expand Down

0 comments on commit 36cc379

Please sign in to comment.