electron-drag
electron-drag copied to clipboard
Window dragging for electron applications
https://www.electronjs.org/zh/blog/electron-14-0#removed-remote-module
platform: windows 10 when click element to drag, the element will goto error position
It automatically increasing window size when element dragged on windows platform.
Here I generate the `mouse` and this event only on `mousedown` and remove it on `mouseup`. The fact that mouseEvent where always listening cause the crash of the devTool on...
When you attach an onclick event to the control, after the drag, the onclick is also fired. This way, if the element is dragged, the onclick is prevented.