If we want to shift the screen, we need some events.
How Mouse Move Event, Mouse Down Event, Mouse UP event
But the problem is , we can only do the animation, but when the finger touches the screen , I mean, when he touches the screen movement, it will move when we will release it to stop (or give this position allows him to stay there). But I want the animation to look like the iPhoneβs main screen. If our finger weakens faster, the animation becomes faster (or the animation slides to a farther place).
Just like now, we use Photoshop, when the image approaches a very large one, when we move our hand faster, it will move very far.
Another example is that it will slow down very slowly, and not immediately. He will also know that my finger is sliding quickly or slowly ... then it will slide slowly or quickly ...
source
share