Delay with touch events

前端 未结 4 388
逝去的感伤
逝去的感伤 2021-01-14 22:36

We have an app in AppStore Bust~A~Spook we had an issue with. When you tap the screen we use CALayer to find the position of all the views during their animation and if you

4条回答
  •  不知归路
    2021-01-14 23:02

    If you're doing any sort of core-animation animation of the CALayers at the same time as you're hit-testing, you must get the presentationLayer before calling hitTest:, as the positions of the model layers do not reflect what might be on screen, but the positions to which the layers are animating.

    Hope that helps.

提交回复
热议问题