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

Add new resizable element and start resize immeditly #459

Closed
emilkarl opened this issue Dec 8, 2016 · 2 comments
Closed

Add new resizable element and start resize immeditly #459

emilkarl opened this issue Dec 8, 2016 · 2 comments

Comments

@emilkarl
Copy link

emilkarl commented Dec 8, 2016

Trying to add a new element (.item) on mousedown in .container. I would like the item to resize directly on add so you can add + resize in one motion and then release mouse.

Any ideas if that is possible? Trying to fire hold after element is added but that does not make it happen.

http://jsfiddle.net/kz12gwz9/31/

@emilkarl
Copy link
Author

emilkarl commented Dec 8, 2016

I need some serious help with this...would be awesome to make this work.

JSFiddle: https://jsfiddle.net/kz12gwz9/41/

Resizing on added items work but there are problems when click->drag to add. The event are missing some vital data.

This works OK but there are multiple issues.

Fix available in branch here: https://rawgit.com/emilkarl/interact.js/fix--my-start-pointers/dist/interact.js

@taye
Copy link
Owner

taye commented Dec 9, 2016

You need to provide the edges property in the action object.

interaction.start({ name: 'resize', edges: { right: true } }, interactable, element);

@taye taye closed this as completed Dec 9, 2016
zorentsl added a commit to zorentsl/interact.js that referenced this issue Dec 19, 2016
taye pushed a commit that referenced this issue Dec 19, 2016
@gdh1995 gdh1995 mentioned this issue Jan 13, 2017
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

No branches or pull requests

2 participants