跳转到内容

isPointerBlockedInTree

此内容尚不支持你的语言。

isPointerBlockedInTree(world, entity): boolean

Defined in: sdk/src/ui/util/helpers.ts:98

Whether the pointer passes through

Pick<World, "has" | "get" | "valid">

number

boolean

entity because of UINode.pointerEvents: the nearest node, itself first, whose value is not Auto decides — None lets the pointer through, Receive takes it back (CSS pointer-events: auto written on a child). The rule the engine’s layout applies; this is it for code that asks between layouts.