-
Notifications
You must be signed in to change notification settings - Fork 30k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
scroll list view on keyboard focus #232644
base: main
Are you sure you want to change the base?
Conversation
Looks great, but it looks like it's scrolling even when tabbing to something inside the viewport? I don't think it should do that, and it would still scroll when clicking buttons and things, I think |
2c74354
to
a79c4e9
Compare
Crux of the issue: |
36cc379
to
c775480
Compare
@@ -480,6 +479,8 @@ export class ListView<T> implements IListView<T> { | |||
} | |||
|
|||
private _scrollToActiveElement(element: HTMLElement, container: HTMLElement) { | |||
// The scroll event on the list only fires when scrolling down. | |||
// If the active element is above the viewport, we need to scroll up. microsoft/vscode-copilot#9357 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO we shouldn't refer to issues in private repos in the OSS repo
fixes https://github.com/microsoft/vscode-copilot/issues/9357
demo.mov