Skip to content

Use touch to drag window #2243

Open
Open
@hbl917070

Description

@hbl917070

I use webview2 to make the entire UI of the program, including the title bar of the window is also HTML.
Electron can use --webkit-app-region: drag; in CSS, but webview2 does not support it.

#200 (comment)
I tried to use this method to implement window dragging, but this method only works with the mouse, and the touch screen will not respond.

Microsoft Teams on Windows 11 also uses webview2,
I use a surface laptop 3 and I can't drag Microsoft Teams on the touch screen.

If possible, would like to be able to support CSS like --webkit-app-region: drag-top; so that the window can be resized.

AB#38450196

Metadata

Metadata

Labels

feature requestfeature requesttrackedWe are tracking this work internally.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions