Skip to content

Commit 901c5b2

Browse files
committed
update example
1 parent 9105c17 commit 901c5b2

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

index.html

+3-2
Original file line numberDiff line numberDiff line change
@@ -364,8 +364,9 @@ <h4 class="col-12">MultiDrag</h4>
364364
</div>
365365
<div style="padding: 0" class="col-12">
366366
<pre class="prettyprint">new Sortable(multiDragDemo, {
367-
multiDrag: true, // Enable multi-drag
368-
selectedClass: 'selected', // The class applied to the selected items
367+
multiDrag: true,
368+
selectedClass: 'selected',
369+
fallbackTolerance: 3, // So that we can select items on mobile
369370
animation: 150
370371
});</pre>
371372
</div>

st/app.js

+1
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ for (var i = 0; i < nestedSortables.length; i++) {
211211
new Sortable(multiDragDemo, {
212212
multiDrag: true,
213213
selectedClass: 'selected',
214+
fallbackTolerance: 3, // So that we can select items on mobile
214215
animation: 150
215216
});
216217

0 commit comments

Comments
 (0)