|
@ -19,6 +19,7 @@ export class Display { |
|
|
target.addEventListener('dragstart', e => { |
|
|
target.addEventListener('dragstart', e => { |
|
|
let target = findA(e.target) |
|
|
let target = findA(e.target) |
|
|
if (!target || !target.draggable) return |
|
|
if (!target || !target.draggable) return |
|
|
|
|
|
e.dataTransfer.clearData() |
|
|
e.dataTransfer.setData('application/prs.x', target.dataset['id']) |
|
|
e.dataTransfer.setData('application/prs.x', target.dataset['id']) |
|
|
e.dataTransfer.effectAllowed = 'link' |
|
|
e.dataTransfer.effectAllowed = 'link' |
|
|
}) |
|
|
}) |
|
|