Skip to main content

passiveEventSupported

还没翻译译自英文(tanstack.com)本页 7 段都还没译

function passiveEventSupported(): boolean;

Defined in: features/column-resizing/columnResizingFeature.utils.ts:397

Detects whether the current environment supports passive event listeners.

Column resizing uses this to register pointer and touch listeners with passive: false only when the environment understands passive options.

Returns

boolean

Example

const canUsePassiveListeners = passiveEventSupported()