<!--
{
  "availability" : [
    "macOS: 10.7.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSScrollView/Elasticity",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@E@NSScrollElasticity"
  },
  "title" : "NSScrollView.Elasticity"
}
-->

# NSScrollView.Elasticity

These constants determine the elasticity behavior for an axis of the scrollview.

```
enum Elasticity
```

## Topics

### Constants

[`NSScrollElasticityAutomatic`](/documentation/AppKit/NSScrollView/Elasticity/automatic)

Automatically determine whether to allow elasticity on this axis.

[`NSScrollElasticityNone`](/documentation/AppKit/NSScrollView/Elasticity/none)

Disallow scrolling beyond document bounds on this axis.

[`NSScrollElasticityAllowed`](/documentation/AppKit/NSScrollView/Elasticity/allowed)

Allow content to be scrolled past its bounds on this axis in an elastic fashion.

## Relationships

### Conforms To

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Equatable`](/documentation/Swift/Equatable)

[`Sendable`](/documentation/Swift/Sendable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`Hashable`](/documentation/Swift/Hashable)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

---

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)