mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 20:26:08 +00:00
fix class selection query
This commit is contained in:
@@ -210,7 +210,7 @@ function initializeScroll(scrollableElement: HTMLElement, disposables: Disposabl
|
||||
|
||||
// Find the scrollTop of the existing scrollable output, return undefined if at the bottom or element doesn't exist
|
||||
function findScrolledHeight(container: HTMLElement): number | undefined {
|
||||
const scrollableElement = container.querySelector(scrollableClass);
|
||||
const scrollableElement = container.querySelector('.' + scrollableClass);
|
||||
if (scrollableElement && scrollableElement.scrollHeight - scrollableElement.scrollTop - scrollableElement.clientHeight > 2) {
|
||||
// not scrolled to the bottom
|
||||
return scrollableElement.scrollTop;
|
||||
|
||||
Reference in New Issue
Block a user