-
Notifications
You must be signed in to change notification settings - Fork 33.3k
Block mouse interaction while breadcrumbs/selectboxcustom dropdown is visible #113723
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
base: main
Are you sure you want to change the base?
Conversation
Hm.... not a big fan. Breadcrumb pickers should close when resizing parts in the workbench IMO |
Is there a way to detect that something is being resized so I can hide the breadcrumb picker? Another option would be something like this (which doesn't look nice either) const mouseDownListener = dom.addDisposableListener(window, dom.EventType.MOUSE_DOWN, e => {
// // #113675 This mouse event is outside the breadcrumb so it counts as a focus out
if (!dom.isAncestor(e.target as HTMLElement, this._widget.domNode) && !dom.isAncestor(e.target as HTMLElement, parent)) {
this._contextViewService.hideContextView(this);
}
}); Another one is removing this line that just calls vscode/src/vs/base/browser/ui/sash/sash.ts Line 213 in 699d736
|
That's the question. @sbatten should know |
It's not exactly what you want but its the only existing option I can think of, but if you can listen to the However, I prefer the functionality of your initial PR more because:
|
@jrieken what do you think, should I still give it a try with |
@jeanp413 should this behavior be on the custom select box? e.g. the terminal selector box suffers the same behavior |
@jeanp413 ah I see, I missed in the PR that the breadcrumbs control was doing something special so you have to handle it in both places. |
Is this still relevant? |
Used the same approach as in contextMenuHandler to block mouse events
This PR fixes #113675