3 ms·
You could do that, but it's more work than using a gesture recognizer, and doesn't compose as well (for example, with the gesture recognizer approach, you can e
by eridius 8y ago
You could do that, but it's more work than using a gesture recognizer, and doesn't compose as well (for example, with the gesture recognizer approach, you can easily add in other behavior like conditionally enabling a tap gesture recognizer that has higher priority than the drag gesture recognizer, without even having to touch the code that implements the drag beyond having access to its gesture recognizer object).
- wingerlang 8y agoUsing an instant LongPress seems like sort of a hack though. Interesting though, how do you transition from the instant LongPress into the "Pan" gesture? Or does the LongPress by itself also get the 'moved' events?
- eridius 8y agoThe UILongPressGestureRecognizer gets 'moved' events. It's a continuous recognizer.