mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 19:51:08 +01:00
Fixing other uses of dragDrop to handle the layout change
This commit is contained in:
parent
c3cb8961a3
commit
d66ae73901
6 changed files with 20 additions and 6 deletions
|
|
@ -124,7 +124,10 @@ export default function DHApplicationMixin(Base) {
|
|||
}
|
||||
}
|
||||
],
|
||||
dragDrop: [{ dragSelector: '.inventory-item[data-type="effect"]', dropSelector: null }],
|
||||
dragDrop: [
|
||||
{ dragSelector: '.inventory-item[data-type="effect"]', dropSelector: null },
|
||||
{ dragSelector: '.inventory-item[data-type="effect"] [draggable="true"]', dropSelector: null }
|
||||
],
|
||||
tagifyConfigs: []
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -36,6 +36,7 @@ export default class DHBaseActorSheet extends DHApplicationMixin(ActorSheetV2) {
|
|||
],
|
||||
dragDrop: [
|
||||
{ dragSelector: '.inventory-item[data-type="attack"]', dropSelector: null },
|
||||
{ dragSelector: '.inventory-item[data-type="attack"] [draggable="true"]', dropSelector: null },
|
||||
{ dragSelector: ".currency[data-currency] .drag-handle", dropSelector: null }
|
||||
]
|
||||
};
|
||||
|
|
@ -374,4 +375,4 @@ export default class DHBaseActorSheet extends DHApplicationMixin(ActorSheetV2) {
|
|||
|
||||
super._onDragStart(event);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -35,7 +35,8 @@ export default class DHBaseItemSheet extends DHApplicationMixin(ItemSheetV2) {
|
|||
dragDrop: [
|
||||
{ dragSelector: null, dropSelector: '.drop-section' },
|
||||
{ dragSelector: '.feature-item', dropSelector: null },
|
||||
{ dragSelector: '.inventory-item', dropSelector: null }
|
||||
{ dragSelector: '.inventory-item', dropSelector: null },
|
||||
{ dragSelector: '.inventory-item [draggable="true"]', dropSelector: null }
|
||||
],
|
||||
contextMenus: [
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue