Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Toggle [ngDraggable] while dragging #144

Closed
agnitos opened this issue Feb 26, 2019 · 1 comment
Closed

Toggle [ngDraggable] while dragging #144

agnitos opened this issue Feb 26, 2019 · 1 comment

Comments

@agnitos
Copy link
Contributor

agnitos commented Feb 26, 2019

If you toggle ngDraggable while you are dragging you get some wierd behaviour. If you start to drag while its set to true and change it to false while its dragging it will stop, but if you then set it to true it will jump it mouse location.
drag-start-when-true

I think this shouldn't work like this, if you set ngDraggable to false while you are dragging it should put the draggable down.

There is the similar issue when you start to drag when ngDraggable is set to false, it will update its position as if you are dragging when it gets set to true.
drag-start-when-false

It shouldn't start to drag if ngDraggable is set to false.

@xieziyu
Copy link
Owner

xieziyu commented Mar 1, 2019

Thanks

@xieziyu xieziyu closed this as completed Mar 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants