4 ms·
Drag and drop between tabs/windows is pretty remarkable, though I wonder if users would even try such a thing to justify the increased complexity.
by tambourine_man 3y ago
Drag and drop between tabs/windows is pretty remarkable, though I wonder if users would even try such a thing to justify the increased complexity.
- strongpigeon 3y agoThat’s natively supported with the HTML5 drag and drop API using dataTransfer. React-beautiful-dnd didn’t support that because they were basically reimplementing the whole thing from scratch and bypassing the browser’s dnd stuff.
- satvikpendem 3y agoThe HTML5 DnD is terrible to use, that's why many use cases require reimplementing it. For example, styling the elements is much more finnicky than it needs to be.
- H1Supreme 3y agoThe styling options are baffling to me. Did they reference any existing libraries when building this feature out? I think the drag and drop functionality is fine, but the lack of any sensible styling (reorder and drop animations in particular) makes it nearly unusable.
- tambourine_man 3y agoI didn't know that, I'll look into it, thanks
- qingcharles 3y agoI think the site builder in Wordpress 6 supports this? Certainly you can copy/paste some extensive elements between tabs and I use it all the time.
- tambourine_man 3y agoCopy/pasting uses the clipboard, which is already shared across the whole system. Seems simpler.