Mezryss / FVTT-Genesys

Foundry VTT: Unoffocial implementation of the Genesys RPG
MIT License
26 stars 9 forks source link

Fixes drag & drop highlight not working on Chrome/app #133

Closed Assembling-Kings closed 7 months ago

Assembling-Kings commented 7 months ago

The dataTransfer data from a drag & drop event can only be accessed during the dragStart and drop parts of it in Chrome (and therefore the app). We were using this data to highlight the sort slots on the Inventory and Crew tabs, and to indicate potential drop locations. This PR fixes that by saving the data as a data transfer type which can be accessed at any part of the process. As a side effect the sort slots and drop locations are not highlighted if the dropped entity comes from a compendium/folder.