fix: Ignore -webkit-app-region: drag;
when window is in full screen mode. (#41307)
Co-authored-by: Mikhail Leliakin <lelyakin.aus@gmail.com>
This commit is contained in:
parent
32920af4b7
commit
79147e4dd8
1 changed files with 5 additions and 0 deletions
|
@ -757,6 +757,11 @@ int NativeWindow::NonClientHitTest(const gfx::Point& point) {
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// This is to disable dragging in HTML5 full screen mode.
|
||||||
|
// Details: https://github.com/electron/electron/issues/41002
|
||||||
|
if (GetWidget()->IsFullscreen())
|
||||||
|
return HTNOWHERE;
|
||||||
|
|
||||||
for (auto* provider : draggable_region_providers_) {
|
for (auto* provider : draggable_region_providers_) {
|
||||||
int hit = provider->NonClientHitTest(point);
|
int hit = provider->NonClientHitTest(point);
|
||||||
if (hit != HTNOWHERE)
|
if (hit != HTNOWHERE)
|
||||||
|
|
Loading…
Reference in a new issue