Skip to content

[Bug]: BrowserView still has a hidden dragging area while y is non-zero #28228

@gucheen

Description

@gucheen

Preflight Checklist

Electron Version

12.x 13.x

What operating system are you using?

macOS

Operating System Version

macOS Big Sur 11.2.2

What arch are you using?

arm64 (including Apple Silicon)

Last Known Working Electron version

12.x

Expected Behavior

BrowserView with non-zero y bound setting should not being able to drag in the bottom area.

Actual Behavior

If set BrowserView with bounds { x: 0, y: 40, width: 300, height: 100 }.
This BrowserView will has a hidden dragging-area in its bottom.
Problem occurred while the y is non-zero.

Testcase Gist URL

https://gist.github.com/c138020abbb7d949608c3c11b1cad253

As in #27884, the dragging problem in BrowserView still exists.
Have tested in v12.x and v13.x.
The dragging area is actually 2x of the BrowserView's y setting (red area in test case).

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions