Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

PTFakeTouch ERROR! pointId all used after moving application into background #24

Open
Alkenso opened this issue Jul 27, 2021 · 0 comments

Comments

@Alkenso
Copy link

Alkenso commented Jul 27, 2021

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)

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant