I’m working on a Duolingo-type word bank minigame (similar to the Clozemaster minigame I shared recently), where you reorder words from a word bank into a sentence. I’ve used SortableJS so I can drag and drop words into the correct place. It works perfectly on desktop, but I just can’t get it to work on mobile. Any ideas what I’m doing wrong? I feel like the solution must be completely obvious, but I’m not a programmer, and I just can’t figure it out.
Here’s the SortableJS demo, which, again, works on Anki desktop but not mobile:
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css"/>
<!-- Latest Sortable -->
<script src="http://SortableJS.github.io/Sortable/Sortable.js"></script>
<!-- Simple List -->
<ul id="simpleList" class="list-group">
<li class="list-group-item">This is <a href="http://SortableJS.github.io/Sortable/">Sortable</a></li>
<li class="list-group-item">It works with Bootstrap...</li>
<li class="list-group-item">...out of the box.</li>
<li class="list-group-item">It has support for touch devices.</li>
<li class="list-group-item">Just drag some elements around.</li>
</ul>
<script>
// Simple list
Sortable.create(simpleList, { /* options */ });
</script>
Any help is greatly appreciated!