microsoft / vscode-edge-devtools

A VSCode extension that allows you to use browser devtools from within the editor. The devtools will connect to an instance of Microsoft Edge giving you the ability to alter CSS styling, perform diagnostics, and debugging. Get it now at http://aka.ms/devtools-for-code
https://docs.microsoft.com/microsoft-edge/visual-studio-code/microsoft-edge-devtools-extension
MIT License
745 stars 252 forks source link

right mouse button event can't be used in "Microsoft Edge Tools for VS Code v2.1.4"'s internal browser window #1986

Open McCmlIan opened 7 months ago

McCmlIan commented 7 months ago

Environment (please complete the following information):

Describe the bug: Javascript eventListener event of right mouse button can't be used in "Microsoft Edge Tools for VS Code v2.1.4"'s internal browser window

I tried to use the Click right mouse Button event in Javascrip but it cant be done in the Edge Dev tools for VS Code. When logging mouse events in dev console it does display all events but the right mouse button.

Repro steps: You may be able reproduce the bug of not being able to fetch right mouse button (Event Number 2) by running the following html code as an index.html file which is to be opened by right Clicking it in the Explorer of Visual studio for to run within the Dev Tools of Visual Studio Code

<!DOCTYPE html>

RightMousbuttonRecognisationBug

Expected behavior: The Code above should display a "2" and "RightClick" on developer console when clicking the right mouse Button on the canvas element

Additional context:

The code works properly when running it on an outside Edge. ( "2" and "RightClick" gets displayed)

At least some elements than canvas don't trigger right mouse Click event either.

I could imagine that some kind of collision with the right mouse handling of VS Studio is happening.

Thank you so far, Microsoft Edge Tools for VS Code Improves my workflow but couldn't use it for some cases if this cant be fixed. :)

captainbrosset commented 7 months ago

Thanks a lot for filing and for providing the repro steps. I will make sure this bug is on our list.