<!--
{
  "availability" : [
    "iOS: 13.4.0 -",
    "iPadOS: 13.4.0 -",
    "macCatalyst: 13.4.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIPanGestureRecognizer/allowedScrollTypesMask",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIPanGestureRecognizer(py)allowedScrollTypesMask"
  },
  "title" : "allowedScrollTypesMask"
}
-->

# allowedScrollTypesMask

A scroll type mask that enables recognition of scroll events.

```
var allowedScrollTypesMask: UIScrollTypeMask { get set }
```

## Discussion

Setting this mask enables the pan gesture to recognize scroll events, like a mouse scroll movement or a two-finger scroll on a track pad. See [`UIScrollType`](/documentation/UIKit/UIScrollType).

> Note:
> Setting this property doesn’t disable scrolling through touches. To disable touch scrolling, return <doc://com.apple.documentation/documentation/Swift/false> from ``doc://com.apple.uikit/documentation/UIKit/UIGestureRecognizerDelegate/gestureRecognizer(_:shouldReceive:)-16fuh`` or set the ``doc://com.apple.uikit/documentation/UIKit/UIGestureRecognizer/allowedTouchTypes`` to an empty array.

---

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)