<!--
{
  "availability" : [
    "macOS: 10.7.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSResponder/wantsScrollEventsForSwipeTracking(on:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSResponder(im)wantsScrollEventsForSwipeTrackingOnAxis:"
  },
  "title" : "wantsScrollEventsForSwipeTracking(on:)"
}
-->

# wantsScrollEventsForSwipeTracking(on:)

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

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

## Parameters

`axis`

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

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> if gesture scroll events are to be forwarded up the responder chain; otherwise <doc://com.apple.documentation/documentation/Swift/false>. The default implementation returns <doc://com.apple.documentation/documentation/Swift/false>.

## Discussion

Implement this method in your swipe controller and return <doc://com.apple.documentation/documentation/Swift/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 <doc://com.apple.documentation/documentation/Swift/false>.

## See Also

[`-  trackSwipeEventWithOptions:dampenAmountThresholdMin:max:usingHandler:`](/documentation/AppKit/NSEvent/trackSwipeEvent(options:dampenAmountThresholdMin:max:usingHandler:))

Allows tracking and user interface feedback of scroll wheel events.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)