web-view icon indicating copy to clipboard operation
web-view copied to clipboard

Dragging window on a frameless webview?

Open Blakeinstein opened this issue 5 years ago • 2 comments

I implemented a custom title bar in my webview app but I am confused as to how I can enable the drag functionality for the user. I had thoughts of adding an invisible handle at the top that could allow the user to drag, but I dont see any methods that can allow me to move the window manually.

Blakeinstein avatar Jul 03 '20 19:07 Blakeinstein

Fixed for edge only, with #201

Can use the master branch of my fork to get it running, https://github.com/Blakeinstein/web-view/

use

webview.drag_intent() // for window drag (use mousedown event listener
webview.set_minimized() // for minimizing window
webview.set_maximized() // for maximizing window

Blakeinstein avatar Jul 04 '20 21:07 Blakeinstein

I have this implemented for IE on my fork https://github.com/RainwayApp/web-view/commit/07653fc229c0ff8b4256636cc560ecbfc9d86b36

andrewmd5 avatar Jul 12 '20 00:07 andrewmd5