Is it possible to change the distance of the UIPanGestureRecognizer
before it will trigger?, the current implementation seems to have a distance margin of 5-10pixels before it is triggered, I would like to lower it if possible.
The reason is I use the UIPanGestureRecognizer
in combination with the UIRotationGestureRecognizer
to change the rotation of a object, with UIPanGestureRecognizer
because of the distance margin it will not rotate right away and therefore the first rotation update will not be smooth (because it will go from 0 to something like 5degrees)
Nope. UIPanGestureRecognizer does not have any extra settings available on it. You could, however, write a custom gesture recognizer to do this.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.