mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-03 22:46:48 -05:00
Merge pull request #49747 from manixate/exclude_scrollbar_drop
Prevent scrollbar to be considered as a drop target for drag-and-drop
This commit is contained in:
@@ -1674,7 +1674,7 @@ export class TreeView extends HeightMap {
|
||||
return candidate;
|
||||
}
|
||||
|
||||
if (element === document.body) {
|
||||
if (element === this.scrollableElement.getDomNode() || element === document.body) {
|
||||
return null;
|
||||
}
|
||||
} while (element = element.parentElement);
|
||||
|
||||
Reference in New Issue
Block a user