---
title: allowedScrollTypesMask
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uipangesturerecognizer/allowedscrolltypesmask
---

# allowedScrollTypesMask

A scroll type mask that enables recognition of scroll events.

## Declaration

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

## Discussion

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. note: Setting this property doesn’t disable scrolling through touches. To disable touch scrolling, return false from gestureRecognizer(_:shouldReceive:) or set the allowedTouchTypes to an empty array.

## See Also

### Tracking scroll events

- [UIScrollTypeMask](uikit/uiscrolltypemask.md)
- [UIScrollType](uikit/uiscrolltype.md)
