You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I am using the ng-draggable library on ui-modal window. I am using the clone as below.
I noticed when the drag starts, the new clone element appears on some offset and not exactly overlapping the element. I looked into code and changed the following code in function onmove()
After the code change its working fine. Not sure the only code which seems likely to be the rootcause can be modal window. like $window.pageXOffset may be returning wrong offset. Also It would be nice to add an additional offsets property to library, incase user want to display the clone some where else. Like imagine a switch which moves element in different divs.
The text was updated successfully, but these errors were encountered:
Hi,
I am using the ng-draggable library on ui-modal window. I am using the clone as below.
I noticed when the drag starts, the new clone element appears on some offset and not exactly overlapping the element. I looked into code and changed the following code in function onmove()
_tx = _mx - _mrx - _dragOffset.left-230;
ty = _my - _mry - _dragOffset.top-30;
After the code change its working fine. Not sure the only code which seems likely to be the rootcause can be modal window. like $window.pageXOffset may be returning wrong offset. Also It would be nice to add an additional offsets property to library, incase user want to display the clone some where else. Like imagine a switch which moves element in different divs.
The text was updated successfully, but these errors were encountered: