---
title: "wantsScrollEventsForSwipeTracking(on:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsresponder/wantsscrolleventsforswipetracking(on:)"
---

# wantsScrollEventsForSwipeTracking(on:)

Implement this method to track gesture scroll events such as a swipe.

## Declaration

```swift
func wantsScrollEventsForSwipeTracking(on axis: NSEvent.GestureAxis) -> Bool
```

## Parameters

- `axis`: The event gesture axis of the swipe, which defines the scroll direction.

## Return Value

Return Value true if gesture scroll events are to be forwarded up the responder chain; otherwise false. The default implementation returns false.

## Discussion

Discussion Implement this method in your swipe controller and return true to inform views that perform elastic scrolling to forward gesture scroll events up the responder chain. The events are forwarded only on the following condition: the content to be scrolled is already at the edge of the scrolled direction when the scroll gesture begins. Otherwise, the view performs elastic scrolling. The default implementation returns false.

## See Also

### Related Documentation

- [trackSwipeEvent(options:dampenAmountThresholdMin:max:usingHandler:)](appkit/nsevent/trackswipeevent(options:dampenamountthresholdmin:max:usinghandler:).md)

### Touch and Gesture Events

- [beginGesture(with:)](appkit/nsresponder/begingesture(with:).md)
- [endGesture(with:)](appkit/nsresponder/endgesture(with:).md)
- [magnify(with:)](appkit/nsresponder/magnify(with:).md)
- [rotate(with:)](appkit/nsresponder/rotate(with:).md)
- [swipe(with:)](appkit/nsresponder/swipe(with:).md)
- [touchesBegan(with:)](appkit/nsresponder/touchesbegan(with:).md)
- [touchesMoved(with:)](appkit/nsresponder/touchesmoved(with:).md)
- [touchesCancelled(with:)](appkit/nsresponder/touchescancelled(with:).md)
- [touchesEnded(with:)](appkit/nsresponder/touchesended(with:).md)
- [wantsForwardedScrollEvents(for:)](appkit/nsresponder/wantsforwardedscrollevents(for:).md)
- [smartMagnify(with:)](appkit/nsresponder/smartmagnify(with:).md)
- [NSEvent.GestureAxis](appkit/nsevent/gestureaxis.md)
