From 5cfd000a7d41c92d3503d0870020f5da015b0fb6 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 27 Dec 2020 11:07:26 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=87=E3=83=83=E3=82=AD=E3=81=AE=E3=82=AB?= =?UTF-8?q?=E3=83=A9=E3=83=A0=E3=81=8C=E3=83=89=E3=83=A9=E3=83=83=E3=82=B0?= =?UTF-8?q?=E3=81=A7=E3=81=8D=E3=81=AA=E3=81=84=E5=95=8F=E9=A1=8C=E3=82=92?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/client/ui/deck/column.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/client/ui/deck/column.vue b/src/client/ui/deck/column.vue index 80d72e65e..1dc990127 100644 --- a/src/client/ui/deck/column.vue +++ b/src/client/ui/deck/column.vue @@ -223,7 +223,12 @@ export default defineComponent({ onDragstart(e) { e.dataTransfer.effectAllowed = 'move'; e.dataTransfer.setData(_DATA_TRANSFER_DECK_COLUMN_, this.column.id); - this.dragging = true; + + // Chromeのバグで、Dragstartハンドラ内ですぐにDOMを変更する(=リアクティブなプロパティを変更する)とDragが終了してしまう + // SEE: https://stackoverflow.com/questions/19639969/html5-dragend-event-firing-immediately + setTimeout(() => { + this.dragging = true; + }, 10); }, onDragend(e) {