关于HitTest在一个view点击时会被调用两次的官方解释

关于HitTest在一个view点击时会被调用两次的官方解释

Yes, it’s normal. The system may tweak the point being hit tested between the calls. Since hitTest should be a pure function with no side-effects, this should be fine.

///

是的,这是正常的。系统可能会在调用之间调整被测试的点。由于hitTest应该是一个没有副作用的纯函数,所以这应该没问题。

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s