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

# otherMouseDragged(with:)

Informs the gesture recognizer that the user moved the mouse with a button other than the left or right one pressed.

```
func otherMouseDragged(with event: NSEvent)
```

## Parameters

`event`

An object encapsulating information about the mouse-dragged event.

## Discussion

The default implementation of this method does nothing. Use this method to update the state of your gesture recognizer in whatever way is appropriate.

A gesture recognizer monitors events that occur in its view (and any subviews) but does not take part in the responder chain itself. The gesture recognizer receives events before any views do. Use the [`delaysOtherMouseButtonEvents`](/documentation/AppKit/NSGestureRecognizer/delaysOtherMouseButtonEvents) property to control whether `event` is propagated to the view.

---

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)