passiveEventSupported

Function: passiveEventSupported()

ts
function passiveEventSupported(): boolean;

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

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

ts
const canUsePassiveListeners = passiveEventSupported()