Class

IndirectPointerEventPrimaryDirectionalMotionAxis

The primary axis for motion from an IndirectPointerEvent.

Source set: Common
public class IndirectPointerEventPrimaryDirectionalMotionAxis private constructor(internal val value: Int)

The primary axis for motion from an IndirectPointerEvent. Indirect input devices such as touchpads that do not move a cursor on screen may define a primary axis for motion (such as scrolling). This facilitates the translation of a 2D input gesture into a 1D scroll on the screen. For example, an input device might be wide horizontally but narrow vertically. In such a case, it would designate X as its primary axis of motion. This means horizontal scrolling on the input device would cause a horizontal list to scroll horizontally, and a vertical list to scroll vertically - even though the direction of motion on the input device is horizontal in both cases.

Members

Companion

Source set: Common
public companion object

Properties

None

Source set: Common
public val None: IndirectPointerEventPrimaryDirectionalMotionAxis

No coordinate axes specified for movement.

X

Source set: Common
public val X: IndirectPointerEventPrimaryDirectionalMotionAxis

X coordinate axis specified as the primary movement axis.

Y

Source set: Common
public val Y: IndirectPointerEventPrimaryDirectionalMotionAxis

Y coordinate axis specified as the primary movement axis.

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: