4 ms·
> Web developers MUST NOT (in the sense of RFC 2119) use HTML 5 drag and drop. They should use old-school scripts instead. As far as I remember if you do that
by mraison 12y ago
> Web developers MUST NOT (in the sense of RFC 2119) use HTML 5 drag and drop. They should use old-school scripts instead.
As far as I remember if you do that (i.e. if you use mousedown, mouseover, etc and move your dragged element accordingly), the result won't be nearly as good as with "native" drag and drop, and you will see the dragged element lagging behind the cursor.
- striking 12y agoThat and sharing state with other windows is nearly impossible whereas HTML5 DnD makes multi-window stuff seamless. But I agree when he says that, as it is, HTML5 DnD is ridiculously difficult to implement properly.
- JoshTriplett 12y agoScripts based on mouse events also can't support drag-and-drop across sites or from non-browser applications, which HTML5 drag-and-drop supports.
- josu 12y agoDo Google, Dropbox and others use the native HTML5?
- ascotan 12y agoI've implemented drag and drop multiple times via jquery event handling and never had lagging issues.
- panzi 12y agoIndeed. I also implemented it by hand once and once I did a bit of event throttling (which jQuery also does) it worked smoothly enough even on a very old Android 3 tablet (in Firefox). And the dragged element has opacity!