Listener cannot work together with Follow path?

I’m trying to create a slider where the thumb moves along a curved path instead of a straight line. Here’s what I’ve attempted so far:

  1. I set up a listener so the thumb follows my cursor when the mouse enters the control area.

  2. I tried to constrain the thumb’s movement to stay along the curve and not stray outside it.

Unfortunately, it’s not working as expected. The thumb either doesn’t follow the curve correctly or moves off the path.

Does anyone have experience with curved sliders or know what I might be doing wrong? Any advice or examples would be really appreciated!

Screen Recording 2025-08-01 at 13.43.04.mov