javascript - JQuery Sortable Drag and Drop issue -


i've implemented jquery drag , drop functionality , i've found slight bug. can drag element smallest amount , it'll still assigned when decide drop because don't want drag element anymore.

how check element above table want drop selected element into?

how drag , drop works @ moment (only have drag slightly)

enter image description here

how should work (don't want able drag)

enter image description here

sortable code:

$(document).ready(function () {  $("#assign tbody").sortable( {     connectwith: "#assign tbody",     scroll: false,     cursor: 'move',     stop: function (event, info)     {         alert("done assign");     } }).disableselection();  $("#remove tbody").sortable( {     connectwith: "#remove tbody",     scroll: false,     cursor: 'move',     stop: function (event, info)     {         alert("done remove");     } }).disableselection(); }); 

js fiddle example: http://jsfiddle.net/lhk941tc/


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -