defines position of dragged item
list.$dragPos = function(pos, e, node){
pos.y = 10; //fix y position, so only horizontal drag will be possible
};
Can be redefined for custom dnd behavior
There are 3 parameters: - pos object ( has x and y properties ) - event object - html node of drag marker
You can modify pos.x and pos.y - updated values will be applied to drag marker
Back to top