# DragScope

# DragScope

Artifact:[androidx.compose.foundation:foundation](https://developer.android.com/jetpack/androidx/releases/compose-foundation)  
[View Source](https://cs.android.com/search?q=file:androidx/compose/foundation/gestures/Draggable.kt+class:androidx.compose.foundation.gestures.DragScope)  
Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.0.0)
Common/AllAndroid/JVM
  - Cmn  

  ```
  interface DragScope
  ```

*** ** * ** ***

Scope used for suspending drag blocks

## Summary

|                             ### Public functions                              |
|-------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----|
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html) | [dragBy](https://developer.android.com/reference/kotlin/androidx/compose/foundation/gestures/DragScope#dragBy(kotlin.Float))`(pixels: `[Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)`)` Attempts to drag by[pixels](https://developer.android.com/reference/kotlin/androidx/compose/foundation/gestures/DragScope#dragBy(kotlin.Float))px. | Cmn |

## Public functions

### dragBy

Cmn  
Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.0.0)  

```
fun dragBy(pixels: Float): Unit
```

Attempts to drag by[pixels](https://developer.android.com/reference/kotlin/androidx/compose/foundation/gestures/DragScope#dragBy(kotlin.Float))px.