HTML5 Drag'n'Drop API based Draggable, Droppable and Sortable for Zepto.js (and jQuery)
HTML5 Drag'n'Drop API based Draggable, Droppable and Sortable for Zepto.js (and jQuery). For Zepto, you have to include its
I often use Draggables, Droppables and Sortables. Besides jQuery UI being way too heavyweight, I want the option to use Zepto. Additionally, I (most of the times) don't care about old/bad browsers. That's the reason why I wrote these native-HTML5-Drag'n'Drop-based Draggable, Droppable and Sortable. Unfortunately, zepto-dnd reached the limits of the native HTML5 DnD API, especially in terms of dragging helper accessibility and - most important - in terms of compatiblity with touch devices. If you are looking for a touch-compatbile DnD library, have a look at touch-dnd.
Copyright (c) 2013 Markus Ast
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.