10000 [Bug]: Inconsistent window dragging behavior between BrowserWindow / BrowserView · Issue #31058 · electron/electron · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
[Bug]: Inconsistent window dragging behavior between BrowserWindow / BrowserView #31058
Closed
@anulman

Description

@anulman

Preflight Checklist

Electron Version

13.1.7

What operating system are you using?

macOS

Operating System Version

macOS Big Sur 11.5.2

What arch are you using?

x64

Last Known Working Electron version

No response

Expected Behavior

Dragging a -webkit-app-region: drag area behaves differently if the WebContents are loaded in the BrowserWindow vs. a BrowserView. There are three noticeable differences; I expected both scenarios to work the way a BrowserWindow does, i.e.

  • When you drag a draggable region between two monitors, a semi-transparent preview should show up on the "inactive" monitor
  • When you click and drag a draggable region on a not-focused BrowserWindow, the window should reposition itself as expected
  • When you're mid-drag and your mouse cursor "leaves" a draggable area, the window should smoothly catch up to the new mouse position

Actual Behavior

Here is a Loom demoing the difference between expected and actual behavior: https://www.loom.com/share/7d28722ac7bb4e1eb37aabc5bae53f8b

  • When you drag a BrowserView's draggable region between two monitors, no semi-transparency effects occur and the window "snaps" to a newly-active monitor once activated
    • This is especially obvious when two monitors are positioned spatially above / below each other; dragging to the bottom window will snap aggressively such that the top of the window is beneath the "Apple menu bar" at the top of the screen.
  • When you click and drag a BrowserView's draggable region when its containing window wa 613A s not focused, it will activate the window and ignore the mouse drag
  • When you're mid-drag with a BrowserView's draggable region and your mouse cursor "leaves" a draggable area, the window "stutters" to the new position, or sometimes even does not move to the new position at all.

Testcase Gist URL

https://gist.github.com/0a371fe58ff8c8b72287629ab6d76d34

Additional Information

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0