# onScroll()

```ts
function onScroll(handler): HookExtension<HookEvent<"scroll", ScrollEvent>>;
```

Calls `handler` on each change of the scroll offset, with no throttling: react-native-webview's `onScroll`.

On iOS, the offsets include the content inset adjustment unless `ios.scrollView.contentInsetAdjustmentBehavior` is `never`, react-native-webview's default.

**Parameters**

| Parameter | Type |
| --- | --- |
| `handler` | (`event`) =\> `void` |

**Returns**

[`HookExtension`](<https://rasmuskard.github.io/react-native-minimal-webview/typescript/react-native-minimal-webview/type-aliases/HookExtension/index.md>)\<[`HookEvent`](<https://rasmuskard.github.io/react-native-minimal-webview/typescript/react-native-minimal-webview/type-aliases/HookEvent/index.md>)\<`"scroll"`, [`ScrollEvent`](<https://rasmuskard.github.io/react-native-minimal-webview/typescript/extensions/type-aliases/ScrollEvent/index.md>)\>\>
