You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Frameless window is not draggable when running MAS build #37414
23-x-y24-x-ybug 🪲has-repro-gistIssue can be reproduced with code at https://gist.github.com/platform/macOSstatus/confirmedA maintainer reproduced the bug or agreed with the feature
To be noted, dragging works as expected on standard Electron builds but consistently fails when using Mac Apple Store builds (>= v23).
@nornagon I understand you've been working on some related issues recently, please let me know if this is a known/fixed issue and I'll close this one, thanks!
I tried reproducing it (albeit with ventura vs big sur) and couldn't reproduce the behaviour, using the test case in the description. Could you let me know if it's still reproducible on your end, and if so, attach a video? Thanks!!
@georgexu99 Thanks for having a look. I had at least one report from a more recent macOS version but need to confirm whether that was Monterey or Ventura.
Also it actually seems like the window is draggable from very specific regions (top right and left corners) but clearly not working consistently as I'd expect.
I thought about that originally but if that was the case I'd expect it to work consistently between builds of the same Electron version but that's not the case. Also the reproducer is a dead simple draggable body element with nothing else in the page, no overlap or anything of the kind.
Honestly I don't even know what's the actual difference between a MAS build and a standard MacOS build for the same version and architecture but from what I could test that's making a big difference because it's working just fine using any other build type.
23-x-y24-x-ybug 🪲has-repro-gistIssue can be reproduced with code at https://gist.github.com/platform/macOSstatus/confirmedA maintainer reproduced the bug or agreed with the feature
Activity
georgexu99 commentedon Feb 28, 2023
Thanks for logging this issue!
I tried reproducing it (albeit with ventura vs big sur) and couldn't reproduce the behaviour, using the test case in the description. Could you let me know if it's still reproducible on your end, and if so, attach a video? Thanks!!
streamer45 commentedon Feb 28, 2023
@georgexu99 Thanks for having a look. I had at least one report from a more recent macOS version but need to confirm whether that was Monterey or Ventura.
Also it actually seems like the window is draggable from very specific regions (top right and left corners) but clearly not working consistently as I'd expect.
out.mp4
nornagon commentedon Feb 28, 2023
You might be running up against this: https://www.electronjs.org/docs/latest/breaking-changes#behavior-changed-draggable-regions-on-macos
streamer45 commentedon Feb 28, 2023
I thought about that originally but if that was the case I'd expect it to work consistently between builds of the same Electron version but that's not the case. Also the reproducer is a dead simple draggable body element with nothing else in the page, no overlap or anything of the kind.
Honestly I don't even know what's the actual difference between a MAS build and a standard MacOS build for the same version and architecture but from what I could test that's making a big difference because it's working just fine using any other build type.
nornagon commentedon Mar 1, 2023
Yeah, I can repro this on v23.1.1-mas-arm64 on macOS Monterey 12.6.3.
nornagon commentedon Mar 1, 2023
Looks like it's this patch causing the issue: https://github.com/electron/electron/blob/main/patches/chromium/mas_disable_custom_window_frame.patch, introduced here: #21573.
This is triggered by #35603, which changed our draggable region impl to depend on this custom window frame view.