# passive

Modifies an `EventHandler` to be passive (improves scrolling performance).

## Signatures

```ts
export declare function passive<Ev extends Event, E = never, R = never>(handler: EventHandler<Ev, E, R>): EventHandler<Ev, E, R>;
```

## Why

The native passive-listener contract is available without a synthetic event
system. This combinator also clears incompatible `once` metadata.

## Ownership and lifetime

The returned description is inert; the renderer Scope owns its listener.

## Examples

```ts
import * as EventHandler from "@typed/template/EventHandler"

const handler = EventHandler.make((event) => {
  // Passive handlers can't call preventDefault
  console.log("Scroll event")
})

const passiveHandler = EventHandler.passive(handler)
```
