Improve drag and drop
This commit is contained in:
parent
56bef13850
commit
c6118c7bc8
7 changed files with 148 additions and 154 deletions
|
|
@ -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;
|
||||
|
||||
// 親ブラウザに対して、ドラッグが開始されたフラグを立てる
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue