Is there a way to control the slider speed ?
nadavstern opened this issue · 3 comments
What kind of issue is this?
- Feature Request. is it possible to control the speed / add some opposition ?
Details
I want to change to add some opposition:
Example:
on sliding right, I would like to add some kind of opposition - in contrast to the sliding direction
so it will be harder / easier to change the slider position
I would like to have some kind of number (set to 1 by default) so this factor value will multiply with the current movement
a number lesser than 1 will make it easier / harder to get the slider into it's desired position
a number greater than 1 will make it harder / easier to get the slider into it's desired position
Thanks
a number lesser than 1 will make it easier / harder to get the slider into it's desired position
a number greater than 1 will make it harder / easier to get the slider into it's desired position
This is currently not possible. The slider follows the user touch point, and is rendered just beneath it. To implement your solution we should break this assumption. It will probably require the user to to multiple gestures making the widget more complicated and less intuitive imho.
Can you describe your use case?
Thanks for responding
I need to create a challenge in which I should be able to define how easy / hard it is to slide it from right to left or left to right
I use it for collecting data and create a user model for each user using the slider
Thanks for clarification. I believe that slidetoact is not the right library for you then. You should probably work on something custom that intercepts the touch events and computes the user speed.