Firstly I want to say thank you to you for this excellent plugin.
As my title above, I need a new method or something like that, that I can stop moving draggable if the draggable box moving out the circle.
Currently, I have used draggie._pointerUp(event.originalEvent, pointer); for leaving the event drag, but I don't want to leave this event, I just want to pause the mouse event moving out the circle, after that the mouse moved to inside the circle the moving draggable will works again.
Firstly I want to say thank you to you for this excellent plugin.
As my title above, I need a new method or something like that, that I can stop moving draggable if the draggable box moving out the circle.
Currently, I have used
draggie._pointerUp(event.originalEvent, pointer);
for leaving the event drag, but I don't want to leave this event, I just want to pause the mouse event moving out the circle, after that the mouse moved to inside the circle the moving draggable will works again.Codepen: https://codepen.io/thangnm93/pen/ExNxgKZ
My condition here:
I expected the result is:
Do you have any ideas for my case? Thank you for your help.