开发者

Jquery dragging- Not working when mouse pointer of out of div

开发者 https://www.devze.com 2023-03-12 11:26 出处:网络
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

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

精彩评论

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