Jquery dragging- Not working when mouse pointer of out of div
The dra开发者_开发问答g function stops when the mouse pointer is out of the parent div while dragging. I need to bring the mouse pointer inside the div to continue dragging. Is there any solution for this?
if you are trying to drag something in all window try this:
$( ".selector" ).draggable({ containment: 'window' });
or any other element instead of 'window' like:
'parent', 'document', 'window', [x1, y1, x2, y2].
精彩评论