+
Skip to content

[Bug]: set WebContentsView on the top of another View, webkit-app-region: no-drag doesn't works on Electron 30 and later #43320

@ksky521

Description

@ksky521

Preflight Checklist

Electron Version

30+

What operating system(s) are you using?

Windows, macOS

Operating System Version

Windows 10, macOS 13.6

What arch are you using?

x64

Last Known Working Electron version

No response

Expected Behavior

image

After designating the red area of the BrowserWindow as a draggable region with webkit-app-region:drag, when a WebContentView is added to the BrowserWindow.contentView, the blue area also becomes draggable.

This happens even if the blue area has been set as a non-draggable region with no-drag, indicating that it's still influenced by the draggable settings of the BrowserWindow.

Actual Behavior

When a BrowserWindow or another WebContentView adds a childView, the drag response is done according to the webkit-app-region behavior of the top childView.

Testcase Gist URL

https://gist.github.com/ksky521/091af6d9782583141564278002b6d235

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载