Merge pull request 'Delay touch sortable items on touch devices' (#5) from haste/delay-touch into master

Reviewed-on: #5
haste/handle-touch
steino 2022-11-19 19:47:32 +01:00
commit 47adefe034
1 changed files with 2 additions and 0 deletions

View File

@ -26,6 +26,7 @@ window.onload = function () {
}) })
Sortable.create(items, { Sortable.create(items, {
delayOnTouchOnly: true,
group: "dndmusicbot-playlists", group: "dndmusicbot-playlists",
filter: ".locked", filter: ".locked",
onMove: (e) => { onMove: (e) => {
@ -47,6 +48,7 @@ window.onload = function () {
}) })
Sortable.create(amb, { Sortable.create(amb, {
delayOnTouchOnly: true,
group: "dndmusicbot-ambiance", group: "dndmusicbot-ambiance",
filter: ".locked", filter: ".locked",
onMove: (e) => { onMove: (e) => {