Skip to content

Commit

Permalink
[UI] Move dragged element completely out of the way
Browse files Browse the repository at this point in the history
  • Loading branch information
hillerstorm committed Dec 22, 2024
1 parent 67d9ca2 commit d1247fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/core/components/pickers/list_picker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ export class ListPicker<ModObject, ItemType> extends Input<ModObject, Array<Item
event => {
if (event.target == moveButton) {
const popoverRect = popover.getBoundingClientRect();
event.dataTransfer!.setDragImage(itemContainer, popoverRect.width, popoverRect.height / 2);
event.dataTransfer!.setDragImage(itemContainer, 0, popoverRect.height / 2);
event.dataTransfer!.dropEffect = 'move';
event.dataTransfer!.effectAllowed = 'move';
itemContainer.classList.add('dragfrom');
Expand Down

0 comments on commit d1247fb

Please sign in to comment.