Re:Ask HN: Current best practice for drag-and-drop?
by Chris_Newton on Tuesday August 19, 2014 @01:28PM
(#8198611)
I agree with everyone recommending a tried and tested library for this.
Even with jQuery and jQuery UI, I see a few bugs and inconsistencies across browsers from time to time. However, you only have to look at the bug trackers for those projects to see how many more issues they have already resolved in this area.
I’m all for keeping things light and avoiding unnecessary dependencies on external libraries, but this is one of those issues where you’d be mad to try and get everything working properly yourself. This is one of the nastiest, most edge-case-ridden areas of front-end web development today, and you surely have better things to do with your time than fix every browser oddity one by one.
Even with jQuery and jQuery UI, I see a few bugs and inconsistencies across browsers from time to time. However, you only have to look at the bug trackers for those projects to see how many more issues they have already resolved in this area.
I’m all for keeping things light and avoiding unnecessary dependencies on external libraries, but this is one of those issues where you’d be mad to try and get everything working properly yourself. This is one of the nastiest, most edge-case-ridden areas of front-end web development today, and you surely have better things to do with your time than fix every browser oddity one by one.