---
title: "wantsForwardedScrollEvents(for:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsresponder/wantsforwardedscrollevents(for:)"
---

# wantsForwardedScrollEvents(for:)

Returns whether to forward elastic scrolling gesture events up the responder.

## Declaration

```swift
func wantsForwardedScrollEvents(for axis: NSEvent.GestureAxis) -> Bool
```

## Parameters

- `axis`: The gesture axis. See doc://com.apple.appkit/documentation/AppKit/NSEvent/GestureAxis for the possible values.

## Return Value

Return Value Returns true when forward gesture scroll events should be forwarded up the responder chain when the scrolling content is already at the edge of the scrolled direction at the beginning of the scroll gesture; false otherwise.

## Discussion

Discussion Some views process gesture scroll events to perform elastic scrolling. In some cases, you may want to track gesture scroll events like a swipe, see trackSwipeEvent(options:dampenAmountThresholdMin:max:usingHandler:). Implement this method and return true in your swipe controller and views that perform elastic scrolling will forward gesture scroll events up the responder chain on the following condition: the content to be scrolled is already at the edge of the scrolled direction at the beginning of the scroll gesture. Otherwise, the view will perform elastic scrolling.

## See Also

### 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)
- [smartMagnify(with:)](appkit/nsresponder/smartmagnify(with:).md)
- [wantsScrollEventsForSwipeTracking(on:)](appkit/nsresponder/wantsscrolleventsforswipetracking(on:).md)
- [NSEvent.GestureAxis](appkit/nsevent/gestureaxis.md)
