mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-26 22:29:28 +09:00
[Client] Fix bug
This commit is contained in:
parent
64277b7157
commit
e85dec030a
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="dnpfarvgbnfmyzbdquhhzyxcmstpdqzs" :class="{ naked, narrow, active, isStacked, draghover, dragging, dropready }"
|
<div class="dnpfarvgbnfmyzbdquhhzyxcmstpdqzs" :class="{ naked, narrow, active, isStacked, draghover, dragging, dropready }"
|
||||||
@dragover.prevent.stop="onDragover"
|
@dragenter.prevent.stop="onDragenter"
|
||||||
@dragleave="onDragleave"
|
@dragleave="onDragleave"
|
||||||
@drop.prevent.stop="onDrop"
|
@drop.prevent.stop="onDrop"
|
||||||
v-hotkey="keymap">
|
v-hotkey="keymap">
|
||||||
@ -269,7 +269,7 @@ export default Vue.extend({
|
|||||||
this.dragging = false;
|
this.dragging = false;
|
||||||
},
|
},
|
||||||
|
|
||||||
onDragover(e) {
|
onDragenter(e) {
|
||||||
// テンポラリカラムにはドロップさせない
|
// テンポラリカラムにはドロップさせない
|
||||||
if (this.isTemporaryColumn) {
|
if (this.isTemporaryColumn) {
|
||||||
e.dataTransfer.dropEffect = 'none';
|
e.dataTransfer.dropEffect = 'none';
|
||||||
@ -287,7 +287,7 @@ export default Vue.extend({
|
|||||||
|
|
||||||
e.dataTransfer.dropEffect = isDeckColumn ? 'move' : 'none';
|
e.dataTransfer.dropEffect = isDeckColumn ? 'move' : 'none';
|
||||||
|
|
||||||
if (!this.dragging) this.draghover = true;
|
if (!this.dragging && isDeckColumn) this.draghover = true;
|
||||||
},
|
},
|
||||||
|
|
||||||
onDragleave() {
|
onDragleave() {
|
||||||
|
Loading…
Reference in New Issue
Block a user