---
title: directionalPressGestureRecognizer
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uiscrollview/directionalpressgesturerecognizer
---

# directionalPressGestureRecognizer

The underlying gesture recognizer for directional button presses.

## Declaration

```swift
var directionalPressGestureRecognizer: UIGestureRecognizer { get }
```

## Discussion

Discussion The directionalPressGestureRecognizer is disabled by default. If you want to perform scrolling in direct response to up, down, left, and right arrow button presses, instead of scrolling indirectly in response to focus updates, enable this gesture recognizer.

## See Also

### Managing touches

- [touchesShouldBegin(_:with:in:)](uikit/uiscrollview/touchesshouldbegin(_:with:in:).md)
- [touchesShouldCancel(in:)](uikit/uiscrollview/touchesshouldcancel(in:).md)
- [canCancelContentTouches](uikit/uiscrollview/cancancelcontenttouches.md)
- [delaysContentTouches](uikit/uiscrollview/delayscontenttouches.md)
