I have a single UIButton
on a storyboard. The UIButton
is connected to a Touch Drag Inside
action myTouchDragInsideAction
. The action is triggered when a user drags the button from inside (UIControlEventTouchDragInside
).
The problem is that the action is triggered after 1 pixel of inside dragging. However 1 pixel is too sensitive and can be triggered with just the slightest finger movement.
@IBAction func myTouchDragInsideAction(sender: UIButton) {
print("Button dragged inside")
}
Question:
How can I extend this action to trigger the inside dragging action only after at least 5 pixels of movement?