Open raziel057 opened 4 months ago
Fix issue https://github.com/developergovindgupta/move-rotate-resizer/issues/3
When the div is rotated, we need to reinitialize the prevSize.left and prevSize.top to match the target.style.left and target.style.top as it's used to constraint the div in the container in handleMousemove:
prevSize.left
prevSize.top
target.style.left
target.style.top
handleMousemove
https://github.com/developergovindgupta/move-rotate-resizer/blob/master/resizer.js?plain=1#L818-L819
Fix issue https://github.com/developergovindgupta/move-rotate-resizer/issues/3
When the div is rotated, we need to reinitialize the
prevSize.left
andprevSize.top
to match thetarget.style.left
andtarget.style.top
as it's used to constraint the div in the container inhandleMousemove
:https://github.com/developergovindgupta/move-rotate-resizer/blob/master/resizer.js?plain=1#L818-L819