We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cf93af7 commit c85b822Copy full SHA for c85b822
source/js/examples/simple_with_animation.js
@@ -4,6 +4,7 @@ $(function () {
4
$("ol.simple_with_animation").sortable({
5
group: 'simple_with_animation',
6
pullPlaceholder: false,
7
+ // animation on drop
8
onDrop: function (item, targetContainer, _super) {
9
var clonedItem = $('<li/>').css({height: 0})
10
item.before(clonedItem)
@@ -14,6 +15,8 @@ $(function () {
14
15
_super(item)
16
})
17
},
18
+
19
+ // set item relative to cursor position
20
onDragStart: function ($item, container, _super) {
21
var offset = $item.offset(),
22
pointer = container.rootGroup.pointer
0 commit comments