Set cursor position on Leftmouse event

I am trying to make a scrubbing value. When you click & drag upwards, it should have a positive value.
& if you drag downwards, it should make that value negative. This goes for wherever you click. For some reason the y value changes depending on the location.

For now I am using the mouse position. I was wondering if the y value can be reset and start from 0 no matter where you click.

jAILkec8ED

1 Like

Not sure I understand the problem, can’t you just store the mouse position on mouse down and the just calculate the delta on mousemove while the release event has not fired yet?

I just want it to start from 0. is there a way to make a custom scrub value?