I have a bunch of images that are draggable and I have a bunch of items that are droppable. In trello, when i drag a picture over a card, it snaps to the bottom right of the card.
If i drag another person's picture on that same card, it snaps to the left of the last image, etc. Is this part of built in API of jquery UI droppable or is this custom code to get this behavior?
Here is my current code:
<script type="text/javascript">
$(function () {
$(".draggable").draggable({ revert: "invalid", snap: "true", snapMode: "inner" });
$(".droppable").droppable({
});
});
</script>