---
title: "AnchoredDragScope"
description: "Scope used for suspending anchored drag blocks. Allows to set [AnchoredDraggableState.offset] to
a new value."
type: "interface"
---

<div class='type'>Interface</div>


<a id='references'></a>

<div class='sourceset sourceset-common'>Common</div>



```kotlin
interface AnchoredDragScope
```


Scope used for suspending anchored drag blocks. Allows to set `AnchoredDraggableState.offset` to
a new value.


## Functions

```kotlin
fun dragTo(newOffset: Float, lastKnownVelocity: Float = 0f)
```


Assign a new value for an offset value for `AnchoredDraggableState`.

#### Parameters

| | |
| --- | --- |
| newOffset | new value for `AnchoredDraggableState.offset`. |
| lastKnownVelocity | last known velocity (if known) |




