<!--
{
  "availability" : [
    "macOS: 10.10.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSGestureRecognizer/delaysSecondaryMouseButtonEvents",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSGestureRecognizer(py)delaysSecondaryMouseButtonEvents"
  },
  "title" : "delaysSecondaryMouseButtonEvents"
}
-->

# delaysSecondaryMouseButtonEvents

A Boolean value that indicates whether secondary mouse button events are delivered only after gesture recognition fails.

```
var delaysSecondaryMouseButtonEvents: Bool { get set }
```

## Discussion

When the value of this property is <doc://com.apple.documentation/documentation/Swift/true>, secondary mouse button events are delivered to the target view only after gesture recognition fails. Set this property to <doc://com.apple.documentation/documentation/Swift/true> to prevent the view from processing events that might be recognized as part of a gesture. Once gesture recognition begins, all types of events are delayed until gesture recognition fails.

The default value of this property is <doc://com.apple.documentation/documentation/Swift/false>.

---

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)