Skip to main content

startX

startX : Number

The clientX from the most recent onPress touch/pointer event, which refers to the horizontal distance from the left edge of the viewport. This only gets updated if you set the type to include "touch" and/or "pointer". It's quite useful for dragging logic.

Details

The clientX from the most recent onPress touch/pointer event, which refers to the horizontal distance from the left edge of the viewport. This only gets updated if you set the type to include "touch" and/or "pointer". It's quite useful for dragging logic.

Contents