Design comparison
Solution retrospective
While attempting to implement the drag and drop functionality to reorder list elements in my code, I discovered that the drag and drop API does not work on mobile devices. I tried several solutions using JavaScript and jQuery, but the jQuery sortable()
method didn't work either. If anyone has any suggestions or solutions for enabling drag and drop in the mobile view, I would greatly appreciate your input.
Community feedback
- @Dev-MV6Posted over 1 year ago
Hi there, if you are having problems implementing the drag and drop functionality yourself, remember that you can always use libraries that are built for this purpose. I recommend checking out Slip.js or SortableJS; both have support for mobile devices.
Good luck.
Marked as helpful0@halelitePosted over 1 year ago@Dev-MV6 Absolutely! I was wondering if I could find a solution on my own. Thank you very much for your response.
0
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord