From 36f083c189b8e92c3d1323348bd78fe1f9873400 Mon Sep 17 00:00:00 2001 From: hayabusa <10593623+m-hayabusa@users.noreply.github.com> Date: Mon, 25 Jul 2022 21:16:11 +0900 Subject: [PATCH] =?UTF-8?q?=E4=B8=80=E9=83=A8=E3=81=AE=E3=82=A2=E3=83=97?= =?UTF-8?q?=E3=83=AA=E3=81=8B=E3=82=89=E3=83=95=E3=82=A1=E3=82=A4=E3=83=AB?= =?UTF-8?q?=E3=82=92=E6=8A=95=E7=A8=BF=E3=83=95=E3=82=A9=E3=83=BC=E3=83=A0?= =?UTF-8?q?=E3=81=B8=E3=83=89=E3=83=AD=E3=83=83=E3=83=97=E3=81=A7=E3=81=8D?= =?UTF-8?q?=E3=81=AA=E3=81=84=E5=A0=B4=E5=90=88=E3=81=8C=E3=81=82=E3=82=8B?= =?UTF-8?q?=E5=95=8F=E9=A1=8C=E3=82=92=E4=BF=AE=E6=AD=A3=20(#9035)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * dropEffectとeffectAllowedの関連付けを修正 * Update Changelog Co-authored-by: syuilo --- CHANGELOG.md | 1 + packages/client/src/components/post-form.vue | 17 ++++++++++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e87e0126a9..57a4b29205 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ You should also include the user name that made the change. - Server: リモートユーザーを正しくブロックできるように修正する @xianonn - Client: 一度作ったwebhookの設定画面を開こうとするとページがフリーズする @syuilo - Client: MiAuth認証ページが機能していない @syuilo +- Client: 一部のアプリからファイルを投稿フォームへドロップできない場合がある問題を修正 @m-hayabusa ## 12.117.1 (2022/07/19) diff --git a/packages/client/src/components/post-form.vue b/packages/client/src/components/post-form.vue index 77fcd79c13..6dfb2edcb8 100644 --- a/packages/client/src/components/post-form.vue +++ b/packages/client/src/components/post-form.vue @@ -479,7 +479,22 @@ function onDragover(ev) { if (isFile || isDriveFile) { ev.preventDefault(); draghover = true; - ev.dataTransfer.dropEffect = ev.dataTransfer.effectAllowed === 'all' ? 'copy' : 'move'; + switch (ev.dataTransfer.effectAllowed) { + case 'all': + case 'uninitialized': + case 'copy': + case 'copyLink': + case 'copyMove': + ev.dataTransfer.dropEffect = 'copy'; + break; + case 'linkMove': + case 'move': + ev.dataTransfer.dropEffect = 'move'; + break; + default: + ev.dataTransfer.dropEffect = 'none'; + break; + } } }