MicrosoftEdge / WebView2Feedback

Feedback and discussions about Microsoft Edge WebView2
https://aka.ms/webview2
452 stars 55 forks source link

Use touch to drag window #2243

Open hbl917070 opened 2 years ago

hbl917070 commented 2 years ago

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.

AB#38450196