anseki / plain-draggable

The simple and high performance library to allow HTML/SVG element to be dragged.
https://anseki.github.io/plain-draggable/
MIT License
773 stars 99 forks source link

How to get the snap element #111

Closed obonyojimmy closed 2 years ago

obonyojimmy commented 2 years ago

Suppose i have a draggable instance with multiple snap targets (html targets) , how to i get to know which element was snapped , currently we only get a boolean value snapped but that's not very useful for this scenario. Thanks , great plugin !

anseki commented 2 years ago

Hi @obonyojimmy, thank you for the comment. These may help you: https://github.com/anseki/plain-draggable/issues/78#issuecomment-881807380 https://github.com/anseki/plain-draggable/issues/26#issuecomment-484473034

obonyojimmy commented 2 years ago

Thanks, 🙏 that was more than helpful.

anseki commented 2 years ago

:smile: