taye / interact.js

JavaScript drag and drop, resizing and multi-touch gestures with inertia and snapping for modern browsers (and also IE9+)
http://interactjs.io/
MIT License
12.32k stars 783 forks source link

Bug with restrictRect and resizable #947

Open tups opened 2 years ago

tups commented 2 years ago

Fix issue : #946

taye commented 2 years ago

Thanks for the PR. Can you add a test case for this fix?

tups commented 2 years ago

If the child element is as large as the parent, we can no longer resize it, and some other cases depending on its position

Here is an example configuration that does not work without PR. Just try to resize the image CodePen : https://codepen.io/tups/pen/vYeeOav

andreasvirkus commented 1 year ago

@tups by "test case" he meant a spec file, something like https://github.com/taye/interact.js/blob/main/packages/%40interactjs/offset/offset.spec.ts