---
category: Elements
deprecated: true
---

::: warning
**Deprecated**. Please use [`usescroll`](https://vueuse.org/core/usescroll/#usescroll) instead.
:::


# useWindowScroll

Reactive window scroll

## Usage

```js
import { useWindowScroll } from '@vueuse/core'

const { x, y } = useWindowScroll()
```
