Answer the question
In order to leave comments, you need to log in
How to implement inertial horizontal swipe?
There is a container, inside which is a block of greater length. The indoor unit needs to be swiped horizontally inside the container. I made a simple scroll of the inner block on the touch event. But I would like to add dynamism and make an inertial swipe, when after the swipe is completed, the block still moves for some time and gradually stops.
Are there ready-made solutions for such an implementation?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question