How to drag a 2d screen element on touch move?

Can someone please help me with this? I am trying to implement a slider. The slider is an image on the 2d screen and I want to move it on touch. How can I achieve this?

1 Like