---
title: lockDirection
framework: appkit
role: symbol
role_heading: Type Property
path: appkit/nsevent/swipetrackingoptions/lockdirection
---

# lockDirection

Clamp gestureAmount to 0 if the user starts to swipe in the opposite direction than they started.

## Declaration

```swift
static var lockDirection: NSEvent.SwipeTrackingOptions { get }
```

## See Also

### Constants

- [clampGestureAmount](appkit/nsevent/swipetrackingoptions/clampgestureamount.md)
