UIPanGestureRecognizer Distance

Is it possible to change the distance of a UIPanGestureRecognizer before it fires ?, the current implementation seems to have a border of 5-10 pixels before it fires, I would like to reduce it if possible.

The reason is because I use UIPanGestureRecognizer in combination with UIRotationGestureRecognizer to change the rotation of an object using UIPanGestureRecognizer because the distance field will not rotate immediately and therefore the first rotation update will not be smooth (because it will go from 0 to approximately 5degrees)

+6
source share
1 answer

Nope. UIPanGestureRecognizer does not contain any additional settings. However, you could write a custom gesture recognizer .

0
source

Source: https://habr.com/ru/post/899525/


All Articles