PTFakeTouch icon indicating copy to clipboard operation
PTFakeTouch copied to clipboard

PTFakeTouch ERROR! pointId all used after moving application into background

Open Alkenso opened this issue 4 years ago • 0 comments

Steps to reproduce

  1. Run async loop with generating synthetic tap every second
  2. Lock iPhone (press side button)
  3. 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)

Alkenso avatar Jul 27 '21 12:07 Alkenso