デッキのカラムがドラッグできない問題を修正

This commit is contained in:
syuilo 2020-12-27 11:07:26 +09:00
parent fa66eac096
commit 5cfd000a7d

View file

@ -223,7 +223,12 @@ export default defineComponent({
onDragstart(e) { onDragstart(e) {
e.dataTransfer.effectAllowed = 'move'; e.dataTransfer.effectAllowed = 'move';
e.dataTransfer.setData(_DATA_TRANSFER_DECK_COLUMN_, this.column.id); e.dataTransfer.setData(_DATA_TRANSFER_DECK_COLUMN_, this.column.id);
// ChromeDragstartDOM(=)Drag
// SEE: https://stackoverflow.com/questions/19639969/html5-dragend-event-firing-immediately
setTimeout(() => {
this.dragging = true; this.dragging = true;
}, 10);
}, },
onDragend(e) { onDragend(e) {