HistoricalChange

Class

Common
class HistoricalChange(val uptimeMillis: Long, val position: Offset)

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 touchscreen rate exceeds framerate.

Parameters

uptimeMillisThe time of the historical pointer event, in milliseconds. In between the current and previous pointer event times.
positionThe Offset of the historical pointer event, relative to the containing element.

Secondary Constructors

internal constructor(
    uptimeMillis: Long,
    position: Offset,
    originalEventPosition: Offset,
) : this(uptimeMillis, position) {
    this.originalEventPosition = originalEventPosition
}