---
title: "trackScrollButtons(with:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsscroller/trackscrollbuttons(with:)"
---

# trackScrollButtons(with:)

Tracks the scroll buttons and sends action messages to the receiver’s target.

## Declaration

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

## Discussion

Discussion This method is invoked automatically when the receiver receives theEvent mouse-down event in a scroll button; you should not invoke this method directly. Special Considerations This method is not invoked in macOS 10.7 and later.

## See Also

### Event Handling

- [hitPart](appkit/nsscroller/hitpart.md)
- [trackKnob(with:)](appkit/nsscroller/trackknob(with:).md)
