Drag and drop "snap to"

Hi all, I’m working on this sliding bar navigation thing , and I’d like to make the bar “snap to” certain points along the line. Does anyone know how to do that?

p.s… yeah i know I need a preloader! :slight_smile: