开发者

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].

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜