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

[Bug][macOS]: browser window dragging capability deactivated on browser view over drag region #32642

Closed
3 tasks done
b3ll00z opened this issue Jan 27, 2022 · 1 comment
Closed
3 tasks done

Comments

@b3ll00z
Copy link

b3ll00z commented Jan 27, 2022

Preflight Checklist

Electron Version

16.0.7

What operating system are you using?

macOS

Operating System Version

macOS Big Sur 11.2.1

What arch are you using?

x64

Last Known Working Electron version

15.0.0

Expected Behavior

Given a frameless browser window with provided html drag region, the browser window itself should be draggable despite any browser view attached

Actual Behavior

Given a frameless browser window with provided html drag region, the dragging capability for the browser window is deactivated by a browser view attached exactly over the drag region

(probably you'll see in the poc that sometimes it's draggable after you resized and dragged the "always"-draggable window).

Testcase Gist URL

https://github.com/b3ll00z/poc-undraggable-frameless

To reproduce

$ git clone https://github.com/b3ll00z/poc-undraggable-frameless
$ cd poc-undraggable-frameless
$ npm install ; npm start
poc_undraggable_window.mov
@b3ll00z b3ll00z changed the title [Bug][macOS]: dragging capability deactivated on browser view over drag region [Bug][macOS]: browser window dragging capability deactivated on browser view over drag region Jan 27, 2022
@codebytere codebytere self-assigned this Feb 2, 2022
@codebytere
Copy link
Member

This is, unfortunately, behavior by design. I corrected this in #31085. On macOS, draggable regions are implemented making the whole web view draggable and overlaying regions that are not draggable. BrowserViews and BrowserWindows hve independent web views, and so independent exclusion zones. Thus, if a BrowserView with different draggable regions than the BrowserWindow it belongs to is superimposed on top of that window, the draggable regions of the BrowserView take precedence over those of the BrowserWindow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants