atlassian / pragmatic-drag-and-drop

Fast drag and drop for any experience on any tech stack
https://atlassian.design/components/pragmatic-drag-and-drop
Other
9.27k stars 207 forks source link

CSS transform on dragged element is not preserved by the dragged item #129

Open ericbiewener opened 3 days ago

ericbiewener commented 3 days ago
Screenshot 2024-09-24 at 6 27 25 AM

This appears to be a limitation of the HTML5 drag & drop API (Codepen indicating this), so feel free to close this issue if pragmatic doesn't offer a solution. Posting this in part just to have it discoverable by future devs.

One potential solution is of course to make a wrapping container draggable, rather than the transformed element itself. But this produces other visual issues, such as the clipping are on the dragged item including an opaque gray background, and potentially even some content outside the DOM of the dragged element (note the few pixels of purple on the left):

Screenshot 2024-09-24 at 6 42 40 AM
EarlStrada commented 2 days ago

I am also experiencing this issue and only on chrome.

Screenshot 2024-09-25 at 10 42 28 AM
tarun111111 commented 1 day ago

Than use the shadow border usess to fix them

alexreardon commented 1 day ago