Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When right-clicking to activate the menu, if the mouse is not released and the mouse is moved to the menu, the menu will be triggered.【右键激活菜单时如果没有释放鼠标,并且移动鼠标到菜单上,会出现激发菜单的情况】 #213448

Open
IOLOII opened this issue May 25, 2024 · 2 comments
Assignees

Comments

@IOLOII
Copy link

IOLOII commented May 25, 2024

Does this issue occur when all extensions are disabled?: yes

  • VS Code Version: 1.89.1
  • OS Version: Darwin arm64 21.6.0

MacBook Pro m1pro
版本: 1.89.1
提交: dc96b83
日期: 2024-05-07T05:14:32.757Z
Electron: 28.2.8
ElectronBuildId: 27744544
Chromium: 120.0.6099.291
Node.js: 18.18.2
V8: 12.0.267.19-electron.0
OS: Darwin arm64 21.6.0

Steps to Reproduce:

  1. Right click file item, don't let go of the mouse, move the mouse to the menu.
  2. Release the mouse, and the menu option under the mouse will be activated.

The first picture is when I use the upper part of the right panel to operate, the mouse has a large space to move, and the menu will not be directly triggered (if the mouse is not released, moving to the menu will also occur above)
【Translate:第一张图片,是当我在右侧面板的上部使用上面操作的时候,此时鼠标有一个较大的空间移动,不会直接触发菜单,(但是如果不松开鼠标,移动到菜单上也会是出现上面的情况)】

image

In the second picture, when clicking on the file at the bottom of the panel, it is very easy to activate the menu in an instant.
【Translate:第二张图片,当点击面板中靠下方的文件时候,非常容易出现易一瞬间激活菜单的情况】

image

Here is some question I want figure it out:

  1. After right-clicking the mouse, move to the menu to start the operation directly. Is it reasonable? If you split it into two steps (that is, under the current normal circumstances): right-click to open the menu, and then left-click to select the menu in two steps. 【鼠标右击之后,移动到菜单上能够直接启动操作,是否合理?如果拆分两步(也就是目前的正常情况下):鼠标右击打开菜单,然后左键选择菜单,分两个步骤就好了】
  2. The second is the reason why I found this situation when I took a screenshot, because the position stimulated by the mouse causes the relative position of the menu display to be different. In the first picture above, the mouse has a 75% safe area, but in the second picture, the mouse only has a 50% safe area, so I will also frequently activate the menu.【第二个是我在截图的时候发现的可能引发出现这个情况的原因,因为鼠标激发的位置导致菜单展示的相对位置不同,在上面第一章图片中鼠标是有75%的安全区域,但是在第二张图片中,鼠标只有50%的安全区域,所以我也会频繁的出现激活菜单的问题】
image

Solution ideas:

  1. When the forbidden menu is activated, the menu can be selected when the right-click of the mouse is not released.【禁止菜单激活的时候在鼠标右击没有释放的情况下能够选中菜单的情况】
  2. In the case of 50% safe area, you can try to increase the offset of the pop-up menu like the one next to it (note that the panel is expanded on the left or right) 【将50%安全区域的情况下,可以试着将弹出的菜单像旁边的偏移量加大(注意面板展开是在左边或者右边的情况)】

All the problems described above are when the mouse is not released after the right mouse click, and then move the mouse or slightly move the mouse.
A wireless mouse is used.

上面描述的所有问题都是在鼠标右击之后没有释放鼠标,然后移动鼠标或者轻微移动鼠标的情况下
使用的是无线鼠标

@VSCodeTriageBot VSCodeTriageBot added *english-please Issue not using English and removed *english-please Issue not using English labels May 25, 2024
@IOLOII
Copy link
Author

IOLOII commented May 25, 2024

Here is a problem mentioned before, which is a similar situation, but that is when you click on the settings. #163247

@IOLOII
Copy link
Author

IOLOII commented May 25, 2024

I just found that it seems that the right mouse button function exists in many places in the whole vscode. I can also select it with the right mouse button in the settings center. The above question, or add a setting to support whether to enable the right mouse button to support the left-click selected function? ( Note that it is support, not a substitute)

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants