# HistoricalChange

Artifact: [androidx.compose.ui:ui](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/input/pointer/PointerEvent.kt+class:androidx.compose.ui.input.pointer.HistoricalChange) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.1.0) Common/AllAndroid/JVM
- Cmn

  ```
  class HistoricalChange
  ```

*** ** * ** ***

Data structure for "historical" pointer moves.

Optional high-frequency pointer moves in between the last two dispatched events: can be used for extra accuracy when input rate exceeds framerate.

## Summary

| ### Public constructors |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/input/pointer/HistoricalChange#HistoricalChange(kotlin.Long,androidx.compose.ui.geometry.Offset,kotlin.Float,androidx.compose.ui.geometry.Offset)( uptimeMillis: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html, position: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset, scaleFactor: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, panOffset: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset )` | Cmn |

| ### Public functions |
|---|---|---|
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/input/pointer/HistoricalChange#toString()()` | Cmn |

| ### Public properties |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/input/pointer/HistoricalChange#panOffset()` An `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset` in pixel coordinates indicating an amount of scrolling. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/input/pointer/HistoricalChange#position()` The `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset` of the historical pointer event, relative to the containing element. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/input/pointer/HistoricalChange#scaleFactor()` A multiplicative scale factor indicating the amount of scale to perform as part of this pointer input change. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/input/pointer/HistoricalChange#uptimeMillis()` The time of the historical pointer event, in milliseconds. | Cmn |

## Public constructors

### HistoricalChange

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

```
HistoricalChange(
    uptimeMillis: Long,
    position: Offset,
    scaleFactor: Float = 1.0f,
    panOffset: Offset = Offset.Zero
)
```

| Parameters |
|---|---|
| `uptimeMillis: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | The time of the historical pointer event, in milliseconds. In between the current and previous pointer event times. |
| `position: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset` | The `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset` of the historical pointer event, relative to the containing element. |
| `scaleFactor: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html = 1.0f` | A multiplicative scale factor indicating the amount of scale to perform as part of this pointer input change. A value of `1f` indicates no scale, a value less than `1f` indicates a scale down, commonly causing a zoom out, and a value greater than `1f` indicates a scale up, commonly causing a zoom in. |
| `panOffset: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset = Offset.Zero` | An `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset` in pixel coordinates indicating an amount of scrolling. |

## Public functions

### toString

Cmn

```
open fun toString(): String
```

## Public properties

### panOffset

Cmn

```
val panOffset: Offset
```

An `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset` in pixel coordinates indicating an amount of scrolling.

### position

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

```
val position: Offset
```

The `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset` of the historical pointer event, relative to the containing element.

### scaleFactor

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

```
val scaleFactor: Float
```

A multiplicative scale factor indicating the amount of scale to perform as part of this pointer input change. A value of `1f` indicates no scale, a value less than `1f` indicates a scale down, commonly causing a zoom out, and a value greater than `1f` indicates a scale up, commonly causing a zoom in.

### uptimeMillis

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

```
val uptimeMillis: Long
```

The time of the historical pointer event, in milliseconds. In between the current and previous pointer event times.