mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 03:31:07 +01:00
For better visuals in dragDrop, always make the drag image the first image selected
This commit is contained in:
parent
02e535775a
commit
4654825245
1 changed files with 1 additions and 1 deletions
|
|
@ -382,8 +382,8 @@ export default function DHApplicationMixin(Base) {
|
||||||
fromInternal: this.document.uuid
|
fromInternal: this.document.uuid
|
||||||
};
|
};
|
||||||
event.dataTransfer.setData('text/plain', JSON.stringify(effectData));
|
event.dataTransfer.setData('text/plain', JSON.stringify(effectData));
|
||||||
event.dataTransfer.setDragImage(inventoryItem.querySelector('img'), 60, 0);
|
|
||||||
}
|
}
|
||||||
|
event.dataTransfer.setDragImage(inventoryItem.querySelector('img'), 60, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue