How can I snap my draggable carousel to a grid?

Djeli shared this question 5 years ago

I have a horizontally draggable carousel. When the user stops dragging it, I want it to snap so that one of the elements is centred.

I can not for the life of me see how to do this - most other prototyping tools such as Proto.io just have a "Snap to grid" option. I'm still assessing Justinmind but if it's missing simple requirements like this, I don't think it will be usable.