<style>
:global([draggable]) {
-webkit-touch-callout:none;
-ms-touch-action:none; touch-action:none;
-moz-user-select:none; -webkit-user-select:none; -ms-user-select:none; user-select:none;
}
</style>
<script context="module" lang="ts">
import DragDropTouch from 'svelte-drag-drop-touch'
import { asDroppable } from 'svelte-drag-and-drop-actions'
import ListView from 'svelte-sortable-flat-list-view'
</script>
<script>
let ItemCounter = 1
let ItemList = [new String('Item ' + ItemCounter)]
let List = []
function onDropped () {
console.log('item added to list')
ItemCounter += 1
ItemList[0] = new String('Item ' + ItemCounter)
}
function onInsertion (Event) {
let [ItemList,InsertionIndex] = Event.detail
console.log('inserted items ' + ItemList.join(',') + ' at ' + InsertionIndex)
}
</script>
<p style="line-height:150%">
Drag the sole item into the list. Upon success, a new item is provided until
the list is full
</p>