# Dragger

> Base manipulator for mouse-dragging elements.

## Definition

* **Type:** Class
* **Namespace:** [UnityEditor.Experimental.GraphView](/engine/6000.7/script-reference/unityeditor/experimental/graphview.md)
* **Assembly:** UnityEditor
* **Inherits from:** [MouseManipulator](/engine/6000.7/script-reference/unityengine/uielements/mousemanipulator.md)
* **Implements:** [IManipulator](/engine/6000.7/script-reference/unityengine/uielements/imanipulator.md)

```csharp
public class Dragger : MouseManipulator, IManipulator
```

## Constructors

| Constructor                                                                                     | Description          |
| ----------------------------------------------------------------------------------------------- | -------------------- |
| [Dragger()](/engine/6000.7/script-reference/unityeditor/experimental/graphview/dragger/ctor.md) | Dragger constructor. |

## Properties

| Property                                                                                                               | Description                                                                                                      |
| ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
| [clampToParentEdges](/engine/6000.7/script-reference/unityeditor/experimental/graphview/dragger/clamptoparentedges.md) | If true, it does not allow the dragged element to exit the parent's edges.                                       |
| [panSpeed](/engine/6000.7/script-reference/unityeditor/experimental/graphview/dragger/panspeed.md)                     | When elements are dragged near the edges of the Graph, panning occurs. This controls the speed for said panning. |

## Methods

| Method                                                                                                                                       | Description                                                     |
| -------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------- |
| [CalculatePosition](/engine/6000.7/script-reference/unityeditor/experimental/graphview/dragger/calculateposition.md)                         | Calculate new position of the dragged element.                  |
| [OnMouseDown](/engine/6000.7/script-reference/unityeditor/experimental/graphview/dragger/onmousedown.md)                                     | Called on mouse down event.                                     |
| [OnMouseMove](/engine/6000.7/script-reference/unityeditor/experimental/graphview/dragger/onmousemove.md)                                     | Called on mouse move event.                                     |
| [OnMouseUp](/engine/6000.7/script-reference/unityeditor/experimental/graphview/dragger/onmouseup.md)                                         | Called on mouse up event.                                       |
| [RegisterCallbacksOnTarget](/engine/6000.7/script-reference/unityeditor/experimental/graphview/dragger/registercallbacksontarget.md)         | Called to register click event callbacks on the target element. |
| [UnregisterCallbacksFromTarget](/engine/6000.7/script-reference/unityeditor/experimental/graphview/dragger/unregistercallbacksfromtarget.md) | Called to unregister event callbacks from the target element.   |

## Inheritance

**Inherited Members:**

* [MouseManipulator.CanStartManipulation(IMouseEvent)](/engine/6000.7/script-reference/unityengine/uielements/mousemanipulator/canstartmanipulation.md)
* [MouseManipulator.CanStopManipulation(IMouseEvent)](/engine/6000.7/script-reference/unityengine/uielements/mousemanipulator/canstopmanipulation.md)
* [MouseManipulator.activators](/engine/6000.7/script-reference/unityengine/uielements/mousemanipulator/activators.md)
* [Manipulator.target](/engine/6000.7/script-reference/unityengine/uielements/manipulator/target.md)
