---
title: "scrollWheel(with:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsscrollview/scrollwheel(with:)"
---

# scrollWheel(with:)

Scrolls the receiver up or down, in response to the user moving the mouse’s scroll wheel specified by theEvent.

## Declaration

```swift
func scrollWheel(with event: NSEvent)
```

## See Also

### Setting Scrolling Behavior

- [lineScroll](appkit/nsscrollview/linescroll.md)
- [horizontalLineScroll](appkit/nsscrollview/horizontallinescroll.md)
- [verticalLineScroll](appkit/nsscrollview/verticallinescroll.md)
- [pageScroll](appkit/nsscrollview/pagescroll.md)
- [horizontalPageScroll](appkit/nsscrollview/horizontalpagescroll.md)
- [verticalPageScroll](appkit/nsscrollview/verticalpagescroll.md)
- [scrollsDynamically](appkit/nsscrollview/scrollsdynamically.md)
