开发者

touchesMoved get all the coordinates swiping fast

开发者 https://www.devze.com 2023-03-09 20:08 出处:网络
I want to get all the coordinates in touchesMoved. The problem I am facing is when you swipe fast on my view than touchesMoved is missing few coordinates from the swipe.

I want to get all the coordinates in touchesMoved. The problem I am facing is when you swipe fast on my view than touchesMoved is missing few coordinates from the swipe.

I have referred this question too. touchesMoved:withEvent

Any solution开发者_如何学Python for this ?


I don't think it is possible to get missing coordinates. Because calling interval of touchesMoved is not frequent enough to catch all fast movements. Maybe you can draw a path between coordinates you can catch. That gives you a rough approximation of missing points.

0

精彩评论

暂无评论...
验证码 换一张
取 消