fix drag&drop on iOS
This commit is contained in:
@@ -16,6 +16,7 @@ export function TaskEntry(taskViewModel: TaskViewModel) {
|
||||
<button
|
||||
draggable="true"
|
||||
class="tile flex-no"
|
||||
style="user-select: none; -webkit-user-select: none"
|
||||
on:click={taskViewModel.open}
|
||||
on:dragstart={taskViewModel.dragStart}
|
||||
>
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
export function allowDrop(event: DragEvent) {
|
||||
event.preventDefault();
|
||||
}
|
||||
|
||||
export function allowDrag(event: DragEvent) {
|
||||
event.dataTransfer?.setData("text", "")
|
||||
}
|
||||
Reference in New Issue
Block a user