I'm exporting a frameless project using NWJS, I would like to make my own TitleBar (the draggable part of the window and window controls), but I'm having problems with the draggable part of the project, I don't understand how I can do it and I haven't found anything that really works on the internet and on the forum
I was able to find two threads on the forum about this, but the links are outdated or the method is not very convenient
https://www.construct.net/en/forum/construct-3/how-do-i-8/draggable-nwjs-window-153331
https://www.construct.net/en/forum/construct-2/how-do-i-18/drag-window-node-webkit-solved-66916
it would be very convenient if the window could be dragged by the sprite (or use something else), I tried to implement this using js, but I'm not good at it and made a bad method, since the position of the cursor relative to the window is taken into account, and not the screen, but I didn’t find how to find the position relative to the screen
I would be grateful for any help