<!--
{
  "availability" : [
    "FxPlug: 4.0.0 -",
    "macOS: 10.7.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "professional_video_applications",
  "identifier" : "/documentation/professional_video_applications/FxOnScreenControl_v4/mouseDragged(atPositionX:positionY:activePart:modifiers:forceUpdate:at:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Professional Video Applications"
    ],
    "preciseIdentifier" : "c:objc(pl)FxOnScreenControl_v4(im)mouseDraggedAtPositionX:positionY:activePart:modifiers:forceUpdate:atTime:"
  },
  "title" : "mouseDragged(atPositionX:positionY:activePart:modifiers:forceUpdate:at:)"
}
-->

# mouseDragged(atPositionX:positionY:activePart:modifiers:forceUpdate:at:)

Provides information when the left mouse button is pressed and the pointer is moved with the mouse button still down.

```
func mouseDragged(atPositionX mousePositionX: Double, positionY mousePositionY: Double, activePart: Int, modifiers: FxModifierKeys, forceUpdate: UnsafeMutablePointer<ObjCBool>!, at time: CMTime)
```

## Parameters

`mousePositionX`

X position of the pointer (in ‘drawingCoordinates’ space).

`mousePositionY`

Y position of the pointer (in ‘drawingCoordinates’ space).

`activePart`

The active part of the control that currently contains the pointer.

`modifiers`

The keyboard modifiers currently pressed.

`forceUpdate`

Set to `YES` if the filter/generator associated with this control needs to be re-calculated; `NO` otherwise.

`time`

The current time when the pointer was moved.

## Discussion

Depending on the host application, the time value may be relative to the start of the timeline or to the start of the clip. See the header file `FxPlug/FxHostCapabilities.h`.

---

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)