Change x position of an object with mouse holding click

Hi everyone

I want to create my new slider. The only thing I cant figure it out is how to apply mouse grape or slide animation on my svg object.
I want to change the x position of my SVG object with mouse holding left click.


Take a look at system.gui.transform() - use the SVG object as an argument, then work out the new X and pass that on as well.

1 Like

Ok just tell me how to detect mouse holding click and get its moving position for new X position?