You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the drag & drop behavior in the system varies depending on where you are dragging to and from:
Actor Inventory -> Another Actor: Copy
Actor Inventory -> Container on Actor: Move
Sidebar -> Actor Inventory: Copy
Sidebar -> Container in Sidebar: Move
Compendium -> Anywhere Else: Copy
Compendium -> Container in Compendium: Move
While these default behaviors should be retained, it would be very nice to be able to toggle to the opposite mode when dragging. This would involve holding down a certain keyboard modifier much like you would in a file browser on your computer. This should also involve changing the drag cursor to make it clear whether a drag will result in a copy or a move operation.
The text was updated successfully, but these errors were encountered:
Adds the ability to use the OS-defined modifier key (usually
Alt on Windows and Option on Mac) to toggle between the default
drop behavior and the opposite behavior. So if dragging within
the same actor this changes from the default move behaior to
copy behavior and the opposite when dragging between different
actors or to the sidebar.
Enabling this required access to the current drag payload during
the `ondragover` event, so this extends the `DragDrop` class
provided by core to store that information during the `ondragstart`
event and adds a new handler for the `ondragend` event to clear
the stored payload.
Currently this only covers dragging items, with some minor
improvements to dragging favorites on the character sheet.
This framework could be expanded in the future to support
dragging actors into the bastion tab as well as dragging active
effects, advancements, or activities.
Closes#4876
Adds the ability to use the OS-defined modifier key (usually
Alt on Windows and Option on Mac) to toggle between the default
drop behavior and the opposite behavior. So if dragging within
the same actor this changes from the default move behaior to
copy behavior and the opposite when dragging between different
actors or to the sidebar.
Enabling this required access to the current drag payload during
the `ondragover` event, so this extends the `DragDrop` class
provided by core to store that information during the `ondragstart`
event and adds a new handler for the `ondragend` event to clear
the stored payload.
Currently this only covers dragging items, with some minor
improvements to dragging favorites on the character sheet.
This framework could be expanded in the future to support
dragging actors into the bastion tab as well as dragging active
effects, advancements, or activities.
Closes#4876
Currently the drag & drop behavior in the system varies depending on where you are dragging to and from:
Actor Inventory -> Another Actor: Copy
Actor Inventory -> Container on Actor: Move
Sidebar -> Actor Inventory: Copy
Sidebar -> Container in Sidebar: Move
Compendium -> Anywhere Else: Copy
Compendium -> Container in Compendium: Move
While these default behaviors should be retained, it would be very nice to be able to toggle to the opposite mode when dragging. This would involve holding down a certain keyboard modifier much like you would in a file browser on your computer. This should also involve changing the drag cursor to make it clear whether a drag will result in a copy or a move operation.
The text was updated successfully, but these errors were encountered: