developergovindgupta / move-rotate-resizer

MIT License
16 stars 4 forks source link

Possibility to exceed the containment #3

Open raziel057 opened 4 months ago

raziel057 commented 4 months ago

Hello,

Thank you for sharing this very nice library! I noticed 2 small issues but it would be nice to fix it.

Sometime when resizing a rotated element it can goes out of the bounded Container as shown below from your demo page.

image

When releasing (mouseUp) the element it goes back to the container.

When resizing an element, if the mouse goes quickly outside of the container, the resizing just stops, so the element don't goes to the side of the container. Moreover I don't know why the angle (°) is displayed at the time.

image