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.
I need some serious help with this...would be awesome to make this work.
JSFiddle: http://ift.tt/2gePi9Z
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.
event.rectis missing when triggeringmoveevent. L39-63- can't stop the move event L37
- Have not be able to start resize by some other event than move! L90-103
- Must use modified version av interact.js found here http://ift.tt/2h9Nw7j
Aucun commentaire:
Enregistrer un commentaire