Skip to content

Commit

Permalink
Custom context menu runs or selects action under mouse when opened (fix
Browse files Browse the repository at this point in the history
#189167) (#189311)

Custom context menu runs or selects action under mouse when opened (#189167)
  • Loading branch information
bpasero authored Aug 2, 2023
1 parent c96d0c0 commit 6b8fff3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/vs/base/browser/ui/contextview/contextview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,11 @@ export class ContextView extends Disposable {
around = {
top: anchor.posy,
left: anchor.posx,
width: 1,
// We are about to position the context view where the mouse
// cursor is. To prevent the view being exactly under the mouse
// when showing and thus potentially triggering an action within,
// we treat the mouse location like a small sized block element.
width: 2,
height: 2
};
}
Expand Down

0 comments on commit 6b8fff3

Please sign in to comment.