---
id: contexts-scroll
title: Scroll
---
```
this.context.scroll // number

Component.contextTypes = context.subscribe(['scroll'])
```
Sets up an event handler for scrolling and returns the amount of pixels scrolled from the top of the page. 
