-
Notifications
You must be signed in to change notification settings - Fork 27.9k
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
Improve window movement with Command Center
enabled
#157437
Comments
Related to #152578 |
Unfortunately not. Once you mark a region as "window-drag-region" it won't receive any event anymore, e.g. clicking the CC won't work anymore. This is an electron/os limitation. Tho, note that you can drag the area above/below the CC to drag the window as well |
It would be really good if you could take the behaviour from Slack and adopt it a little bit. Maybe detect whether the window is been dragged and close the CC again? After a short period of 500ms for example. But of course only if it works at all. |
I ran into this. Especially when the window is small, there is essentially no area left to drag the window with.
Is it not possible to set the window position with |
This is how it works: we declare the title bar element as draggable region, via
My guess is that slack doesn't always use the I'll prepare a change that enables this for mac but I have nothing to offer for windows users... |
@deepak1556 Do you think there is a chance to tweak electron to behave on windows/linux as it does on mac (see comment about drag/no-drag above)? |
A recent change to the title bar should provide more draggable space to the title bar on Windows and Linux. There should be a bit more space around the command center. Though, due to the holidays, this is not yet available in Insiders and won't be in stable until end of January. |
@jrieken with the changes to use better flex layout in the titlebar, I would say we could tweak padding further if we want, but the situation is as improved as we can take it. Thus I propose we close this one out. |
@jrieken joyce's report is due to padding on the CC, I think we can remove that padding as we have margin on the center content |
Yeah, looks like there is margin around the title-container and padding for the CC container. Let's nuke the latter |
Please re-open this issue because I don't have the permission for this. |
The problem:
I've recently found out if the VSCode window is quite small, it is very difficult to move the window.
As shown in this picture, only some small areas can be used to move the window. This is even worse if Layout Controls are enabled aswell.
One solution:
This could be improved by allowing the command center to be draggable as well. Also, this would fit better with the Command Center replacing the window bar.
I think this can be implemented, because no action is done when currently dragging the command center.
Version:
Version: 1.70.0 (user setup)
Commit: da76f93
Date: 2022-08-04T04:38:16.462Z
Electron: 18.3.5
Chromium: 100.0.4896.160
Node.js: 16.13.2
V8: 10.0.139.17-electron.0
OS: Windows_NT x64 10.0.19043
The text was updated successfully, but these errors were encountered: