HistoricalChange
-
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 |
|
|---|---|
HistoricalChange( |
Cmn
|
Public properties |
||
|---|---|---|
Offset |
An |
Cmn
|
Offset |
The |
Cmn
|
Float |
A multiplicative scale factor indicating the amount of scale to perform as part of this pointer input change. |
Cmn
|
Long |
The time of the historical pointer event, in milliseconds. |
Cmn
|
Public constructors
HistoricalChange
HistoricalChange(
uptimeMillis: Long,
position: Offset,
scaleFactor: Float = 1.0f,
panOffset: Offset = Offset.Zero
)
| Parameters | |
|---|---|
uptimeMillis: Long |
The time of the historical pointer event, in milliseconds. In between the current and previous pointer event times. |
position: Offset |
The |
scaleFactor: Float = 1.0f |
A multiplicative scale factor indicating the amount of scale to perform as part of this pointer input change. A value of |
panOffset: Offset = Offset.Zero |
An |
Public properties
position
val position: Offset
The Offset of the historical pointer event, relative to the containing element.
scaleFactor
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
val uptimeMillis: Long
The time of the historical pointer event, in milliseconds. In between the current and previous pointer event times.