3 ms·
I actually have some experience using this via angular-dragula (https://github.com/bevacqua/angular-dragula https://github.com/bevacqua/angular-dragula) - it mo
by Bahamut 10y ago
I actually have some experience using this via angular-dragula (https://github.com/bevacqua/angular-dragula https://github.com/bevacqua/angular-dragula) - it mostly works for us for Angular 1, but when we started doing more complex interactions in a prototype, it showed its warts quickly with model bugs. This library ends up doing basic things pretty nicely, but being able to do more complex interactions like stacking multiple selected items becomes impossible to do right.
In our current app my team is working on (Angular 2), I ended up homebrewing selection and drag & drop modules, which I hopefully will take the time to open source at some point when things slow down. It was an interesting exercise, with some work for getting the UX done right (some aspects such as what should happen when the user drags a little on the mouse while holding it down - just dragging as soon as the mousedown event occurs is no good because it turns out users typically will move the mouse a little when pressing the mousedown for a click). It made me appreciate any site that implements non-trivial drag and drop, it is not an easy interaction to get right.