'Scroll bar not working in Visual Studio Code sometimes after closing MS Edge

I am having this weird issue since I installed the latest version of VSCode for linux. Whenever a Microsoft Edge (dev) and a vscode window is open, and then I close the edge tab, scroll bar just stops working in vscode.

Link to gif showing the issue
You can see the cursor disappears as well when I click the scroll bar after closing edge, while normally when scrolling, the cursor stays in its location.

If I then open a Firefox or Google Chrome tab, this problem suddenly disappears. I can then close all browsers without any problem, and the issue happens again only after I restart vscode.

Even more weird is that when I right click the edge browser's icon from task bar, and click Close from there (instead of opening the edge tab, clicking the cross button on top right), this issue happens only sometimes. This is very irritating to me as I usually use edge for my browsing tasks daily, and I don't know if this is an OS specific issue or what. Also I disabled all extensions in vscode, so they can't be causing the problem.

OS: Kubuntu 20.04.2 LTS x86_64
VSCode version: 1.56.2 (Installed from .deb file at official site)
Microsoft edge dev version: 92.0.884.2



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source