PTFakeTouch ERROR! pointId all used after moving application into background
Alkenso opened this issue · comments
Vladimir (Alkenso) commented
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)