iOS: Detect if touchEnded comes from sliding off screen or lifting finger?
ios, touch
Solution
This is standard iOS behavior, you may see it in any Apple's app.
You may check if touch ended at the end of screen and treat it as "cancel sliding", but user might be wanting to slide this far.
My advice is accept it, because, as I said before, it's standard behavior, and Apple tells us to stick to it - users expect standard behavior.
Problem
In iOS is there any way to tell, when the touch ends, if it ended by sliding off the screen or if the user lifted his finger? I don't know why, but I expected the touch to be cancelled when this happened, but it is not. Thanks.