adding a scrolling behavior using touch event on SKCanvasView

Trying to achieve swipe up swipe down double tap panning.

I am able to detect swipe movement but how much scrolling distance should be covered. I am able to get touch1 coordinates and touch direction. How to calculate velocity? Acceleration? & Distance to cover?


Sign In or Register to comment.