🌈 Create new beautiful Compose Gradients with our new wesite ->
Function

movePointerTo

Updates the position of the pointer with the given pointerId to the given position, but does not send a move event.

movePointerTo

Source set: Common
@Deprecated(
    message =
        "Replaced by TouchInjectionScope. Use `performTouchInput` instead of " + "`performGesture`",
    replaceWith = ReplaceWith("updatePointerTo(pointerId, position)"),
)
public fun GestureScope.movePointerTo(pointerId: Int, position: Offset): Unit

Updates the position of the pointer with the given pointerId to the given position, but does not send a move event. The move event can be sent with move. The position is in the node's local coordinate system, where (0.px, 0.px) is the top left corner of the node.

If the pointer is not yet down, an IllegalArgumentException will be thrown.

Parameters

pointerId The id of the pointer to move, as supplied in down
position The new position of the pointer, in the node's local coordinate system