MicrosoftEdge / MicrosoftEdge/WebView2Feedback
Use touch to drag window
@gourabkmsft is already working on this.
Since Feb 7, 2025.
- Dominant language
- PowerShell
- Stars
- 526
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Description
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.
https://github.com/MicrosoftEdge/WebView2Feedback/issues/200#issuecomment-633061172
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.

Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.