-
Notifications
You must be signed in to change notification settings - Fork 15.1k
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
Window cannot be dragged on Mac OS with titleBarStyle="hidden" #5678
Comments
Nevermind, just found the workaround: add style="-webkit-app-region: drag" to the html element corresponding to the app header. Seems reasonable. |
See #5660 for a similar issue See #5557 for the PR that changed this behavior See https://github.com/electron/electron/blob/master/docs/api/frameless-window.md#draggable-region for how to implement yourself from now on 👍 😄 |
Just one issue. How we you supposed to account for the fact that titleBarStyle doesn't work for OSX Mavericks? If we have to include custom HTML component to act as a draggable menu in Yosemite+, then we have to not include that same html component for OSX Mavericks, or else for OSX Mavericks we'll have two menu bars. How can we achieve this without having to create two separate builds? |
@LDubya Node provides the OS version via |
When a BrowserWindow is configured with titleBarStyle "hidden" or "hidden-inset", the user can no longer drag the window to move it.
The text was updated successfully, but these errors were encountered: