Sliding door drag-and-drop style interaction not working with constraints

Hello. I’m trying to create this sliding door interaction that moves along a path constrain, but I can’t quite get it to work with the align target and pointer drag listener. It’s supposed to move along the path I made when I drag the door, but currently it can move freely. I’d also like it to snap to either side when it’s dragged far enough, so it looks like it snaps into place. Appreciate the help.

Schermopname 2026-05-05 om 11.28.39.mov