How to make sliding mobile controls?

you can maybe have a big button and use mouse to follow the finger. and when it reaches the end pos it makes the character jump