<!--
{
  "availability" : [
    "macOS: 10.3.0 - 10.14.0"
  ],
  "documentType" : "symbol",
  "framework" : "WebKit",
  "identifier" : "/documentation/WebKit/WebUIDelegate/webView(_:dragSourceActionMaskFor:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "WebKit"
    ],
    "preciseIdentifier" : "c:objc(pl)WebUIDelegate(im)webView:dragSourceActionMaskForPoint:"
  },
  "title" : "webView(_:dragSourceActionMaskFor:)"
}
-->

# webView(_:dragSourceActionMaskFor:)

Returns a mask indicating which drag-source actions are allowed for a drag that begins at the specified location.

```
optional func webView(_ webView: WebView!, dragSourceActionMaskFor point: NSPoint) -> Int
```

## Parameters

`webView`

The web view that sent the message.

`point`

The point at which the drag began, specified in the coordinates of the web view.

## Return Value

A mask indicating which drag-source actions are allowed. (Note that the return value changed from an `unsigned int` to an `NSUInteger` in OS X v10.5.) See [`WebDragSourceAction`](/documentation/WebKit/WebDragSourceAction) for a list of return values.

## Discussion

This method is called after the user has begun a drag from a point in a web view. This method can be invoked multiple times while content is dragged from the sending web view. When the content is dropped, the sender sends [`webView(_:willPerform:from:with:)`](/documentation/WebKit/WebUIDelegate/webView(_:willPerform:from:with:)) to the receiver.

If you do not implement this method, it returns `(WebDragSourceActionAny & ~WebDragSourceActionLink)` if the cursor is in an editable part of the web view; otherwise, it returns [`any`](/documentation/WebKit/WebDragDestinationAction/any).

---

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)