I would like to create a view of the working widget and it is very easy to style it with HTML / CSS. I decided to use WebView for this task.
I have a limitless NSWindow with a WebView inside. I want to make it draggable with the mouse (since any regular window can be dragged using its name, but by clicking somewhere inside my WebView ). Tried to subclass WebView and override mouseDown and mouseDragged , but this did not work (for obvious reasons).
Of course, I can create a transparent view above the WebView to solve the problem, but I really want to find a better way. Does anyone know how to do this?
source share