I am working on movable, draggable and resizable div which can be rotated. The question is: How to make rotated div properly resize on mousemove? It works fine on bottom and right resize dots but top and left are making div moving while resizing ( while rotated ) ... No idea how to solve this... Couldn't find proper answer for my problem...
If anyone knows how to solve this please share your thoughts!
Here is a link to the sourcecode in svelte REPL. https://svelte.dev/repl/563d81a82f58b73be3468bf19053406?version=3.49.0