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

Window cannot be dragged on Mac OS with titleBarStyle="hidden" #5678

Closed
markbrocato opened this issue May 24, 2016 · 4 comments
Closed

Window cannot be dragged on Mac OS with titleBarStyle="hidden" #5678

markbrocato opened this issue May 24, 2016 · 4 comments

Comments

@markbrocato
Copy link

  • Electron version: 1.1.1
  • Operating system: Mac OS El Capitan

When a BrowserWindow is configured with titleBarStyle "hidden" or "hidden-inset", the user can no longer drag the window to move it.

@markbrocato
Copy link
Author

Nevermind, just found the workaround: add style="-webkit-app-region: drag" to the html element corresponding to the app header. Seems reasonable.

@MarshallOfSound
Copy link
Member

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 👍 😄

@LDubya
Copy link

LDubya commented May 30, 2016

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?

@enlight
Copy link
Contributor

enlight commented May 30, 2016

@LDubya Node provides the OS version via os.release(), more details at http://stackoverflow.com/questions/14989081/node-js-to-get-determine-os-version

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

4 participants