Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug with restrictRect and resizable #947

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tups
Copy link
Contributor

@tups tups commented Dec 22, 2021

Fix issue : #946

@taye
Copy link
Owner

taye commented Apr 7, 2022

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

@tups
Copy link
Contributor Author

tups commented Apr 8, 2022

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
Copy link

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants