# mouseDelta

> Gets the difference between the mouse's position during the previous mouse event and its position during the current mouse event.

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine.UIElements](/engine/6000.6/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

```csharp
Vector2 mouseDelta { get; }
```

### Remarks

This value is based on [\_mousePosition](/engine/6000.6/script-reference/unityengine/uielements/imouseevent/mouseposition.md) and is expressed in panel coordinates.
