When I click the right mouse button, sometimes the menu pops up normally, and sometimes the command in the menu is executed directly.
I think this should have something to do with where the menu pops up, when I debug in the browser, I make an adjustment to the size of the web page, and then the menu pops up at the top right of the mouse and automatically clicks on the last menu item, this problem happens in linux, not in windows.
I think the reason is as follows: when you press the right mouse button, the menu pops up, due to the pixel calculation error caused by scaling, the pop-up menu item will appear directly under the mouse and be selected by default, and when you release the right mouse button, it will determine whether there is a selected menu item, and if so, execute the menu command.
Please check, thanks!