mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-04 22:25:50 +02:00
Improve drag and drop
This commit is contained in:
@@ -115,11 +115,7 @@ export default Vue.extend({
|
||||
|
||||
onDragstart(e) {
|
||||
e.dataTransfer.effectAllowed = 'move';
|
||||
e.dataTransfer.setData('text', JSON.stringify({
|
||||
type: 'file',
|
||||
id: this.file.id,
|
||||
file: this.file
|
||||
}));
|
||||
e.dataTransfer.setData('mk_drive_file', JSON.stringify(this.file));
|
||||
this.isDragging = true;
|
||||
|
||||
// 親ブラウザに対して、ドラッグが開始されたフラグを立てる
|
||||
|
||||
Reference in New Issue
Block a user