desandro / draggabilly

:point_down: Make that shiz draggable
https://draggabilly.desandro.com
MIT License
3.86k stars 387 forks source link

Fire event when element "touches" the limits of the container #203

Closed Xavours closed 2 years ago

Xavours commented 5 years ago

Hi, thanks for this great script. I need to get an event fired when any draggable element reaches the limits of the container. Any ideas to make it happen ?

Thx a lot ;)

Xavours commented 5 years ago

Found a way to do it. There might be a more efficient/elegant solution though. Pull request : https://github.com/desandro/draggabilly/pull/204