PTFakeTouch
PTFakeTouch copied to clipboard
PTFakeTouch ERROR! pointId all used after moving application into background
Steps to reproduce
- Run async loop with generating synthetic tap every second
- Lock iPhone (press side button)
- Unlock iPhone ER: taps continue to be performed AR: error "PTFakeTouch ERROR! pointId all used"
I've researched the issue a bit. After locking the iPhone all touches in touchAry have phase 'UITouchPhaseCancelled'
Found solution: in + (NSInteger)getAvailablePointId treat touch with phase UITouchPhaseCancelled as available (as Ended/Stationary are)