Fix dragging AE from compendium or within same actor

This commit is contained in:
Carlos Fernandez 2026-06-13 03:56:05 -04:00
parent 7a631c27a7
commit c06cdd49dd
4 changed files with 19 additions and 40 deletions

View file

@ -186,15 +186,6 @@ export default class AdversarySheet extends DHBaseActorSheet {
});
}
/** @inheritdoc */
async _onDragStart(event) {
const inventoryItem = event.currentTarget.closest('.inventory-item');
if (inventoryItem) {
event.dataTransfer.setDragImage(inventoryItem.querySelector('img'), 60, 0);
}
super._onDragStart(event);
}
/* -------------------------------------------- */
/* Application Clicks Actions */
/* -------------------------------------------- */